diff --git a/app/views/homework_common/index.html.erb b/app/views/homework_common/index.html.erb
index a1aa49c8c..870edbfe4 100644
--- a/app/views/homework_common/index.html.erb
+++ b/app/views/homework_common/index.html.erb
@@ -56,7 +56,23 @@
<% end%>
+
+
+
扣分标准:
+
+ 迟交扣
+ <%= homework.late_penalty%>
+ 分
+ <% if homework.homework_type == 1%>
+ ,缺评一个作品扣
+ <%= homework.homework_detail_manual.absence_penalty%>
+ 分
+ <% else%>
+ 。
+ <% end%>
+
+
<%= l(:label_end_time)%>:<%= homework.end_time%>
diff --git a/app/views/student_work/_evaluation_student_work.html.erb b/app/views/student_work/_evaluation_student_work.html.erb
new file mode 100644
index 000000000..0f66452c7
--- /dev/null
+++ b/app/views/student_work/_evaluation_student_work.html.erb
@@ -0,0 +1,58 @@
+
+" id="student_work_<%= student_work.id%>">
+ -
+
+ <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
+
+
+ -
+ <%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name, :class => "c_blue02"%>
+
+ -
+ <%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
+
+ -
+ <% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(student_work.created_at.to_s).strftime("%Y-%m-%d") %>
+ 迟交
+ <% else%>
+ <%= student_work.created_at.strftime("%m-%d").to_s%>
+ <% end %>
+
+ -
+ <%= student_work.teacher_score.nil? ? "--" : format("%.1f",student_work.teacher_score)%>
+
+ -
+ <%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
+
+ -
+ <%= student_work.student_score.nil? ? "--" : format("%.1f",student_work.student_score)%>
+ <% unless student_work.student_score.nil?%>
+
+ (<%= student_work.student_works_scores.where(:reviewer_role => 3).count%>)
+
+
+ 现共有
+ <%= student_work.student_works_scores.where(:reviewer_role => 3).count%>
+ 名学生进行了匿评,平均分为
+ <%= format("%.1f",student_work.student_score)%> 分。
+
+ <% end%>
+
+ <% score = student_work.respond_to?("score") ? student_work.score : student_work.final_score - student_work.absence_penalty - student_work.late_penalty%>
+ -
+ <%= score.nil? ? "--" : format("%.1f",score)%>
+ <% unless score.nil?%>
+
+ 作品最终评分为
+ <%= student_work.final_score%> 分。
+ 迟交扣分
+ <%= student_work.late_penalty%> 分,
+ 缺评扣分
+ <%= student_work.absence_penalty%> 分,
+ 最终成绩为
+ <%= format("%.1f",score)%> 分。
+
+ <% end%>
+
+
+
\ No newline at end of file
diff --git a/app/views/student_work/_evaluation_student_work_title.html.erb b/app/views/student_work/_evaluation_student_work_title.html.erb
new file mode 100644
index 000000000..0e4151065
--- /dev/null
+++ b/app/views/student_work/_evaluation_student_work_title.html.erb
@@ -0,0 +1,43 @@
+
+ 学号
+
+
+ <%= link_to "姓名",@show_all ? student_work_index_path(:homework => @homework.id,:order => "name", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
+ <% if @show_all && @order == "name"%>
+
+ <% end%>
+
+
+ 作品名称
+
+
+ <%= link_to "时间",@show_all ? student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
+ <% if @show_all && @order == "created_at"%>
+ <%= link_to "",student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
+ <% end%>
+
+
+ <%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
+ <% if @show_all && @order == "teacher_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
+ <% end%>
+
+
+ <%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
+ <% if @show_all && @order == "teaching_asistant_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
+
+ <% end%>
+
+
+ <%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
+ <% if @show_all && @order == "student_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
+ <% end%>
+
+
+ <%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
+ <% if @show_all && @order == "score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
+ <% end%>
+
\ No newline at end of file
diff --git a/app/views/student_work/_student_work.html.erb b/app/views/student_work/_student_work.html.erb
index c555b36a9..dd7ab7e2d 100644
--- a/app/views/student_work/_student_work.html.erb
+++ b/app/views/student_work/_student_work.html.erb
@@ -8,7 +8,7 @@
<%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name, :class => "c_blue02"%>
-
+
<%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
@@ -24,47 +24,19 @@
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
-
- <%= student_work.student_score.nil? ? "--" : format("%.1f",student_work.student_score)%>
- <% unless student_work.student_score.nil?%>
-
- (<%= student_work.student_works_scores.where(:reviewer_role => 3).count%>)
-
-
- 现共有
- <%= student_work.student_works_scores.where(:reviewer_role => 3).count%>
- 名学生进行了匿评,平均分为
- <%= format("%.1f",student_work.student_score)%> 分。
-
- <% end%>
-
<% score = student_work.respond_to?("score") ? student_work.score : student_work.final_score - student_work.absence_penalty - student_work.late_penalty%>
-
+
<%= score.nil? ? "--" : format("%.1f",score)%>
<% unless score.nil?%>
- <% if @homework.homework_type == 1%>
-
-
- 作品最终评分为
- <%= student_work.final_score%> 分。
- 迟交扣分
- <%= student_work.late_penalty%> 分,
- 缺评扣分
- <%= student_work.absence_penalty%> 分,
- 最终成绩为
- <%= format("%.1f",score)%> 分。
-
- <% else%>
-
-
- 作品最终评分为
- <%= student_work.final_score%> 分。
- 迟交扣分
- <%= student_work.late_penalty%> 分,
- 最终成绩为
- <%= format("%.1f",score)%> 分。
-
- <% end%>
+
+
+ 作品最终评分为
+ <%= student_work.final_score%> 分。
+ 迟交扣分
+ <%= student_work.late_penalty%> 分,
+ 最终成绩为
+ <%= format("%.1f",score)%> 分。
+
<% end%>
diff --git a/app/views/student_work/_student_work_title.html.erb b/app/views/student_work/_student_work_title.html.erb
index 0e4151065..c46f7dc79 100644
--- a/app/views/student_work/_student_work_title.html.erb
+++ b/app/views/student_work/_student_work_title.html.erb
@@ -7,7 +7,7 @@
<% end%>
-
+
作品名称
@@ -29,12 +29,6 @@
<% end%>
-
- <%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
- <% if @show_all && @order == "student_score"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
- <% end%>
-
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
<% if @show_all && @order == "score"%>
diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb
index c5bc5858d..e65b067d6 100644
--- a/app/views/student_work/index.html.erb
+++ b/app/views/student_work/index.html.erb
@@ -69,28 +69,46 @@
winrar
工具进行解压
- <%= link_to "匿评", evaluation_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr'%>
- <%= link_to "缺评", absence_penalty_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr'%>
+ <%= link_to("匿评", evaluation_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr') if @homework.homework_type == 1%>
+ <%= link_to("缺评", absence_penalty_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr') if @homework.homework_type == 1%>
<%= link_to l(:label_list), student_work_index_path(:homework => @homework.id,:order => @order, :sort => @b_sort, :name => @name, :format => 'xls'),:class=>'down_btn fr'%>
导出全部:
<% end%>
-
- <% if @is_evaluation.nil?%>
- <%= render :partial => 'student_work_title'%>
- <% else%>
- <%= render :partial => 'evaluation_work_title'%>
- <% end%>
-
- <% @stundet_works.each do |student_work|%>
- <%= render :partial => (@is_evaluation ? 'evaluation_work' :'student_work'),:locals => {:student_work => student_work}%>
-
+ <% if @is_evaluation%>
+
+ <%= render :partial => 'evaluation_work_title'%>
+
+
+ <% @stundet_works.each do |student_work|%>
+ <%= render :partial => "evaluation_work",:locals => {:student_work => student_work}%>
+
+ <% end%>
+ <% else %>
+ <% if @homework.homework_type == 1%>
+
+ <%= render :partial => 'evaluation_student_work_title'%>
+
+
+ <% @stundet_works.each do |student_work|%>
+ <%= render :partial => "evaluation_student_work",:locals => {:student_work => student_work}%>
+
+ <% end%>
+ <% else%>
+
+ <%= render :partial => 'student_work_title'%>
+
+
+ <% @stundet_works.each do |student_work|%>
+ <%= render :partial => "student_work",:locals => {:student_work => student_work}%>
+
+ <% end%>
+ <% end%>
<% end%>
-
@@ -123,6 +141,23 @@
<% end%>
+
+
+
+
扣分标准:
+
+ 迟交扣
+ <%= @homework.late_penalty%>
+ 分
+ <% if @homework.homework_type == 1%>
+ ,缺评一个作品扣
+ <%= @homework.homework_detail_manual.absence_penalty%>
+ 分
+ <% else%>
+ 。
+ <% end%>
+
+
截止时间:<%= @homework.end_time%>
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index 651436ec4..41514ab12 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -626,6 +626,8 @@ a:hover.icon_add{background:url(images/icons.png) -20px -310px no-repeat;}
.hwork_tit{ width:210px; float:left; }
.hwork_tit a{ width:205px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
+.hwork_tit_une{ width:270px; float:left; }
+.hwork_tit_une a{ width:265px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
.hwork_code{ width:56px; text-align:center; }
.hwork_code02{ width:60px; text-align:center; }
.hwork_tit_e{ width:420px; float:left; }
diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css
index e015fbe57..27792347a 100644
--- a/public/stylesheets/public.css
+++ b/public/stylesheets/public.css
@@ -98,6 +98,8 @@ h4{ font-size:14px; color:#3b3b3b;}
.w210{ width:210px;}
.w150{ width:150px;}
.w280{ width:280px;}
+.w265{ width: 265px;}
+.w270{ width: 270px;}
.w430{ width:470px;}
.w520{ width:520px;}
.w543{ width:543px;}