-
-
-
- <%= 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/app/views/organizations/_join_project_menu.html.erb b/app/views/organizations/_join_project_menu.html.erb
index 3d2055ec9..6040408bb 100644
--- a/app/views/organizations/_join_project_menu.html.erb
+++ b/app/views/organizations/_join_project_menu.html.erb
@@ -29,7 +29,7 @@
<%=form_tag url_for(:controller => 'organizations', :action => 'join_projects', :organization_id => organization_id),:method => 'post', :id => 'join_projects_form', :remote => true,:class=>"resourcesSearchBox" do %>
-
+
diff --git a/app/views/organizations/_org_left_subfield_list.html.erb b/app/views/organizations/_org_left_subfield_list.html.erb
index e1fba0169..d11919927 100644
--- a/app/views/organizations/_org_left_subfield_list.html.erb
+++ b/app/views/organizations/_org_left_subfield_list.html.erb
@@ -3,7 +3,7 @@
@@ -15,7 +15,7 @@
diff --git a/app/views/student_work/_evaluation_un_work.html.erb b/app/views/student_work/_evaluation_un_work.html.erb
index 0a4ab044a..bf022f64c 100644
--- a/app/views/student_work/_evaluation_un_work.html.erb
+++ b/app/views/student_work/_evaluation_un_work.html.erb
@@ -74,7 +74,7 @@
<% score = student_work.respond_to?("score") ? student_work.score : (student_work.final_score || 0) - student_work.absence_penalty - student_work.late_penalty%>
- <%= score.nil? ? "--" : format("%.1f",score)%>
+ <%= score.nil? ? "--" : format("%.1f",score<0 ? 0 : score)%>
<% unless score.nil?%>
作品最终评分为
diff --git a/app/views/student_work/_revise_attachment.html.erb b/app/views/student_work/_revise_attachment.html.erb
index 2279856da..dabf9715a 100644
--- a/app/views/student_work/_revise_attachment.html.erb
+++ b/app/views/student_work/_revise_attachment.html.erb
@@ -9,7 +9,7 @@
<%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 2} %>
追加时间:<%=format_time revise_attachment.created_on.to_s %> (<%=revise_attachment_status @homework,revise_attachment %>)
<% unless revise_attachment.description == "" %>
-
附件描述:<%=revise_attachment.description %>
+
追加理由:<%=revise_attachment.description %>
<% end %>
@@ -24,7 +24,7 @@
<%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 1} %>
追加时间:<%=format_time revise_attachment.created_on.to_s %>
<% unless revise_attachment.description == "" %>
- 附件描述:<%=revise_attachment.description %>
+ 追加理由:<%=revise_attachment.description %>
<% end %>
<% end %>
diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb
index c6d2bd313..b314bcf6d 100644
--- a/app/views/student_work/index.html.erb
+++ b/app/views/student_work/index.html.erb
@@ -170,7 +170,11 @@
-
截止时间:<%= @homework.end_time %> 23:59
+ <% if @homework.homework_detail_manual && @homework.homework_detail_manual.comment_status < 2 %>
+
提交截止时间:<%= @homework.end_time %> 23:59
+ <% elsif @homework.homework_detail_manual && @homework.homework_detail_manual.comment_status >= 2 %>
+
匿评截止时间:<%= @homework.homework_detail_manual.evaluation_end %> 23:59
+ <% end %>
<% if @homework.homework_detail_manual.comment_status == 0 %>
发布时间:<%= @homework.publish_time %> 00:00
<% end %>
diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb
index da05ac946..a0ce84795 100644
--- a/app/views/users/_course_homework.html.erb
+++ b/app/views/users/_course_homework.html.erb
@@ -86,7 +86,11 @@
分组人数:<%=activity.homework_detail_group.min_num %>-<%=activity.homework_detail_group.max_num %> 人
<% end %>
-
截止时间:<%= activity.end_time.to_s %> 23:59
+ <% if activity.homework_detail_manual && activity.homework_detail_manual.comment_status < 2 %>
+
提交截止时间:<%= activity.end_time.to_s %> 23:59
+ <% elsif activity.homework_detail_manual && activity.homework_detail_manual.comment_status >= 2 %>
+
匿评截止时间:<%= activity.homework_detail_manual.evaluation_end.to_s %> 23:59
+ <% end %>
diff --git a/app/views/users/_user_homework_detail.html.erb b/app/views/users/_user_homework_detail.html.erb
index fb6ae0455..0472613e4 100644
--- a/app/views/users/_user_homework_detail.html.erb
+++ b/app/views/users/_user_homework_detail.html.erb
@@ -84,9 +84,11 @@
分组人数:<%=homework_common.homework_detail_group.min_num %>-<%=homework_common.homework_detail_group.max_num %> 人
<% end %>
-
- <%= l(:label_end_time)%>:<%= homework_common.end_time%> 23:59
-
+ <% if homework_common.homework_detail_manual && homework_common.homework_detail_manual.comment_status < 2 %>
+
提交截止时间:<%= homework_common.end_time.to_s %> 23:59
+ <% elsif homework_common.homework_detail_manual && homework_common.homework_detail_manual.comment_status >= 2 %>
+
匿评截止时间:<%= homework_common.homework_detail_manual.evaluation_end.to_s %> 23:59
+ <% end %>
<% if homework_common.homework_detail_manual.comment_status == 0 %>
<%= l(:label_publish_time)%>:<%= homework_common.publish_time%> 00:00
diff --git a/config/routes.rb b/config/routes.rb
index 3afca2451..be9843a80 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -928,6 +928,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);}