-
-
- <%= image_tag(url_to_avatar(@course), :width => "60", :height => "60") %>
-
-
- ID:<%= @course.id%>
-
-
- <% if is_teacher%>
- <%= link_to "#{l(:button_configure)}".html_safe, {:controller => 'courses', :action => 'settings', :id => @course}, :class => "pr_join_a" %>
- <%= set_course_time @course%>
- <%#= link_to "#{l(:button_copy)}".html_safe, copy_course_course_path(@course.id), :class => "pr_join_a" %>
- <% else%>
-
- <% end%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%= @course.name %>
-
- <% if @course.is_public == 0%>
-
-
- <%= l(:field_is_private)%>
-
- <% end %>
-
- <%if User.current && @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %>
-
- <% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%>
-
- <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%>
-
- <% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%>
-
- <%else%>
- <%end %>
-
-
-
-
-
-
+
+ <%=render :partial=>'layouts/project_info' %>
diff --git a/config/routes.rb b/config/routes.rb
index fb381e8ea..67a1c7e88 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -924,6 +924,7 @@ RedmineApp::Application.routes.draw do
post 'join_in/join_group', :to => 'courses#join_group', :as => 'join_group'
delete 'join_in/join_group', :to => 'courses#unjoin_group'
get 'copy_course'
+ get 'private_or_public'
match 'course_activity', :to => 'courses#course_activity', :via => :get, :as => "course_activity"
get 'course_outline'
post 'search_course_outline'
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index 86586243d..441adce29 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -1239,3 +1239,5 @@ div.disable_link {background-color: #c1c1c1 !important;}
.support{ background:url(../images/public_icon.png) -66px -45px no-repeat; width:18px; height:21px;}
.function{ background:url(../images/public_icon.png) -66px -70px no-repeat; width:18px; height:21px;}
.weekly{ background:url(../images/public_icon.png) -66px -95px no-repeat; width:18px; height:21px;}
+
+.boxShadow {box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5);}