diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index c8a3bca0c..6e0f70313 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -3237,6 +3237,7 @@ def strip_html(text,len=0,endss="...")
ss = ""
if text.length>0
ss=text.gsub(/<\/?.*?>/, '').strip
+ ss = ss.gsub(/ /, ' ')
if len > 0 && ss.length > len
ss = ss[0, len] + endss
diff --git a/app/models/journal.rb b/app/models/journal.rb
index 02086fa62..eeaa17dd6 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -239,8 +239,10 @@ class Journal < ActiveRecord::Base
#缺陷回复微信模板消息
def issue_wechat_message
- ws = WechatService.new
- content = strip_html self.notes.html_safe, 200
- ws.comment_template self.issue.author_id, "issues", self.journalized_id, "#{l(:label_issue_comment_template)}", self.user.try(:realname), format_time(self.created_on), content
+ if !self.notes.nil? && self.notes.gsub(' ','') != ''
+ ws = WechatService.new
+ content = strip_html self.notes.html_safe, 200
+ ws.comment_template self.issue.author_id, "issues", self.journalized_id, "#{l(:label_issue_comment_template)}", self.user.try(:realname), format_time(self.created_on), content
+ end
end
end
diff --git a/app/models/journals_for_message.rb b/app/models/journals_for_message.rb
index 68b747ab9..d0113744c 100644
--- a/app/models/journals_for_message.rb
+++ b/app/models/journals_for_message.rb
@@ -259,19 +259,26 @@ class JournalsForMessage < ActiveRecord::Base
if self.m_parent_id.nil?
if self.user_id != self.jour.user_id
self.course_messages << CourseMessage.new(:user_id => self.jour.user_id,:course_id => self.jour.course.id, :viewed => false)
+ count = ShieldWechatMessage.where("container_type='User' and container_id=#{self.jour.user_id} and shield_type='Course' and shield_id=#{self.jour.course_id}").count
+ if count == 0
+ ws = WechatService.new
+ #content = truncate(strip_tags(self.notes.to_s), length: 200)
+ content = strip_html self.notes.html_safe, 200
+ ws.comment_template self.jour.user_id, "homework", self.jour_id, "#{l(:label_homework_comment_template)}", self.user.try(:realname), format_time(self.created_on), content
+ end
end
else
if self.user_id != self.parent.user_id
self.course_messages << CourseMessage.new(:user_id => self.parent.user_id,:course_id => self.jour.course.id, :viewed => false)
+ count = ShieldWechatMessage.where("container_type='User' and container_id=#{self.parent.user_id} and shield_type='Course' and shield_id=#{self.jour.course_id}").count
+ if count == 0
+ ws = WechatService.new
+ #content = truncate(strip_tags(self.notes.to_s), length: 200)
+ content = strip_html self.notes.html_safe, 200
+ ws.comment_template self.parent.user_id, "homework", self.jour_id, "#{l(:label_new_second_comment_template)}", self.user.try(:realname), format_time(self.created_on), content
+ end
end
end
- count = ShieldWechatMessage.where("container_type='User' and container_id=#{self.jour.user_id} and shield_type='Course' and shield_id=#{self.jour.course_id}").count
- if count == 0
- ws = WechatService.new
- #content = truncate(strip_tags(self.notes.to_s), length: 200)
- content = strip_html self.notes.html_safe, 200
- ws.comment_template self.jour.user_id, "homework", self.jour_id, "#{l(:label_homework_comment_template)}", self.user.try(:realname), format_time(self.created_on), content
- end
end
end
diff --git a/app/views/exercise/_student_exercise.html.erb b/app/views/exercise/_student_exercise.html.erb
index d7a1b85bb..f9fd114dd 100644
--- a/app/views/exercise/_student_exercise.html.erb
+++ b/app/views/exercise/_student_exercise.html.erb
@@ -22,60 +22,6 @@
- <%= render :partial => "student_table"%>
+ <%= render :partial => "student_table" %>
-
-
-<% @exercise_users_list.each do |exercise|%>
-
-
- - 1
- -
- <%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(exercise.user)) %>
-
- -
- <%=exercise.user.show_name %>
-
-
- <%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%>
-
- -
- --
-
- -
- <% if exercise.created_at%>
- <%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
- <% if @exercise.end_time <= exercise.created_at %>
- [未答]
- <% end %>
- <% end %>
-
-
- -
- <%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
-
- - 点击查看详情
-
-
-
-<% end%>
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/views/exercise/_student_exercise_archive.html.erb b/app/views/exercise/_student_exercise_archive.html.erb
new file mode 100644
index 000000000..abc604b73
--- /dev/null
+++ b/app/views/exercise/_student_exercise_archive.html.erb
@@ -0,0 +1,81 @@
+
+
+ 测验
+
+ (<%= @exercise_count%>人已交)
+
+ <% if !@is_teacher && @exercise_users_list.empty?%>
+ 您尚未提交
+ <% elsif !@is_teacher && !@exercise_users_list.empty?%>
+ 您已提交
+ <% end %>
+
+ <%#if @is_teacher || @exercise.exercise_status == 3%>
+
+ <%#= select_tag(:student_work_in_group,options_for_select(course_group_list(@course),@group), {:class => "classSplit"}) unless course_group_list(@course).empty? %>
+ <%# end%>
+
[ 显示测验信息 ]
+
+
+
+
+ <%= render :partial => "student_table"%>
+
+
+
+<% @exercise_users_list.each do |exercise|%>
+
+
+ - 1
+ -
+ <%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(exercise.user)) %>
+
+ -
+ <%=exercise.user.show_name %>
+
-
+ <%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%>
+
+ -
+ --
+
+ -
+ <% if exercise.created_at%>
+ <%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
+ <% if @exercise.end_time <= exercise.created_at %>
+ [未答]
+ <% end %>
+ <% end %>
+
+
+ -
+ <%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
+
+ - 点击查看详情
+
+
+
+<% end%>
\ No newline at end of file
diff --git a/app/views/exercise/_student_table.html.erb b/app/views/exercise/_student_table.html.erb
index 8957c5048..5a93c352a 100644
--- a/app/views/exercise/_student_table.html.erb
+++ b/app/views/exercise/_student_table.html.erb
@@ -1,23 +1,71 @@
-
- -
- 序号
-
- 姓名
- 学号
- 班级
-
+
+
+
+ 序号
+
+ 姓名
+ 学号
+ 班级
+ |
+
+ <%= link_to "时间",'',:class => "c_dark f14 fb fl ml50" ,:remote => true%>
+ |
+
+ <%= link_to "成绩",'',:class => "c_dark f14 fb fl ml10",:remote => true%>
+ |
+
- -
- <%= link_to "时间",'',:class => "c_dark f14 fb fl ml50" ,:remote => true%>
- <%# if @show_all && @order == "created_at"%>
- <%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
- <%# end%>
-
+ <% @exercise_users_list.each do |exercise|%>
+
- -
- <%= link_to "成绩",'',:class => "c_dark f14 fb fl ml10",:remote => true%>
- <%# if @show_all && @order == "score"%>
- <%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
- <%# end%>
-
-
\ No newline at end of file
+
+ 1 |
+
+ <%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;", :class => "mt15"),user_activities_path(exercise.user)) %>
+ |
+
+ <%=exercise.user.show_name %>
+ |
+
+ <%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%>
+ |
+
+ --
+ |
+ |
+
+ <% if exercise.created_at%>
+ <%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
+ <% if @exercise.end_time <= exercise.created_at %>
+ [未答]
+ <% end %>
+ <% end %>
+ |
+
+ <%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
+ |
+ 点击查看详情 |
+
+ <% end%>
+
\ No newline at end of file
diff --git a/app/views/exercise/_student_table_archive.html.erb b/app/views/exercise/_student_table_archive.html.erb
new file mode 100644
index 000000000..0e018cddc
--- /dev/null
+++ b/app/views/exercise/_student_table_archive.html.erb
@@ -0,0 +1,23 @@
+
+ -
+ 序号
+
+ 姓名
+ 学号
+ 班级
+
+
+ -
+ <%= link_to "时间",'',:class => "c_dark f14 fb fl ml50" ,:remote => true%>
+ <%# if @show_all && @order == "created_at"%>
+ <%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <%# end%>
+
+
+ -
+ <%= link_to "成绩",'',:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <%# if @show_all && @order == "score"%>
+ <%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <%# end%>
+
+
\ No newline at end of file
diff --git a/app/views/student_work/_evaluation_title.html.erb b/app/views/student_work/_evaluation_title.html.erb
index 257fcb94a..c74bd76c6 100644
--- a/app/views/student_work/_evaluation_title.html.erb
+++ b/app/views/student_work/_evaluation_title.html.erb
@@ -1,27 +1,39 @@
-
- - 序号
- -
- -
- 作品名称
-
+
+
+ 序号 |
+ |
+ 作品名称 |
<% if @homework.homework_type != 3 %>
- - 姓名
- - 学号
+
+ 姓名
+ |
+
+ 学号
+ |
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
- - 关联项目
+
+ 关联项目
+ |
<% end %>
-
- -
- 时间
-
-
- <% if @homework.homework_type == 2%>
- -
- 系统
-
+
+ 时间
+ |
+ <% if @homework.homework_type == 2%>
+
+ 系统
+ |
+ <% end%>
+
+ 我的评分
+ |
+
+ <% @stundet_works.each_with_index do |student_work, i|%>
+ <%= render :partial => "evaluation_work", :locals => {:student_work => student_work, :index => i}%>
+
+
+
+
+ |
+
<% end%>
-
- -
- 我的评分
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/views/student_work/_evaluation_title_archive.html.erb b/app/views/student_work/_evaluation_title_archive.html.erb
new file mode 100644
index 000000000..e4e26ed4f
--- /dev/null
+++ b/app/views/student_work/_evaluation_title_archive.html.erb
@@ -0,0 +1,27 @@
+
+ - 序号
+ -
+ -
+ 作品名称
+
+ <% if @homework.homework_type != 3 %>
+ - 姓名
+ - 学号
+ <% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
+ - 关联项目
+ <% end %>
+
+ -
+ 时间
+
+
+ <% if @homework.homework_type == 2%>
+ -
+ 系统
+
+ <% end%>
+
+ -
+ 我的评分
+
+
\ No newline at end of file
diff --git a/app/views/student_work/_evaluation_un_title.html.erb b/app/views/student_work/_evaluation_un_title.html.erb
index 0721c9ff5..afb213196 100644
--- a/app/views/student_work/_evaluation_un_title.html.erb
+++ b/app/views/student_work/_evaluation_un_title.html.erb
@@ -1,73 +1,74 @@
-
- - 序号
- -
- -
- 作品名称
-
+
+
+ 序号 |
+ |
+ 作品名称 |
<% if @homework.homework_type != 3 %>
-
-
-
+
+
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
- -
- 关联项目
-
+
+ 关联项目
+ |
<% end %>
-
- -
- <%= link_to "时间",@show_all ? student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml50" ,:remote => true%>
- <% if @show_all && @order == "created_at"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+
+ <%= link_to "时间",@show_all ? student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml50" ,:remote => true%>
+ <% if @show_all && @order == "created_at"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+ |
+
+ <%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10" ,:remote => true%>
+ <% if @show_all && @order == "teacher_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
+ <% end%>
+ |
+
+ <%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "teaching_asistant_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+ |
+ <% if @homework.homework_type == 2%>
+
+ <%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "system_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+ |
<% end%>
-
-
- -
- <%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10" ,:remote => true%>
- <% if @show_all && @order == "teacher_score"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
- <% end%>
-
-
- -
- <%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
- <% if @show_all && @order == "teaching_asistant_score"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
- <% end%>
-
-
- <% if @homework.homework_type == 2%>
- -
- <%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
- <% if @show_all && @order == "system_score"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
- <% end%>
-
+ <% if @homework.anonymous_comment == 0%>
+
+ <%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "student_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+ |
+ <% end %>
+
+ <%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+ |
+
+ <% @stundet_works.each_with_index do |student_work, i|%>
+ <%= render :partial => "evaluation_un_work", :locals => {:student_work => student_work, :index => i}%>
+
+
+
+
+ |
+
<% end%>
-
- <% if @homework.anonymous_comment == 0%>
- -
- <%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
- <% if @show_all && @order == "student_score"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
- <% end%>
-
- <% end %>
-
- -
- <%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
- <% if @show_all && @order == "score"%>
- <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
- <% end%>
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/views/student_work/_evaluation_un_title_archive.erb b/app/views/student_work/_evaluation_un_title_archive.erb
new file mode 100644
index 000000000..f844e320b
--- /dev/null
+++ b/app/views/student_work/_evaluation_un_title_archive.erb
@@ -0,0 +1,73 @@
+
+ - 序号
+ -
+ -
+ 作品名称
+
+ <% if @homework.homework_type != 3 %>
+
+
+
+ <% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
+ -
+ 关联项目
+
+ <% end %>
+
+ -
+ <%= link_to "时间",@show_all ? student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml50" ,:remote => true%>
+ <% if @show_all && @order == "created_at"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+
+
+ -
+ <%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10" ,:remote => true%>
+ <% if @show_all && @order == "teacher_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
+ <% end%>
+
+
+ -
+ <%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "teaching_asistant_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+
+
+ <% if @homework.homework_type == 2%>
+ -
+ <%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "system_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+
+ <% end%>
+
+ <% if @homework.anonymous_comment == 0%>
+ -
+ <%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "student_score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+
+ <% end %>
+
+ -
+ <%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
+ <% if @show_all && @order == "score"%>
+ <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
+ <% end%>
+
+
\ No newline at end of file
diff --git a/app/views/student_work/_evaluation_un_work.html.erb b/app/views/student_work/_evaluation_un_work.html.erb
index de54585b3..bffc8ab0f 100644
--- a/app/views/student_work/_evaluation_un_work.html.erb
+++ b/app/views/student_work/_evaluation_un_work.html.erb
@@ -1,60 +1,58 @@
-
- - <%=index + 1 %>
- -
+
+ <%=index + 1 %> |
+
<%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(student_work.user)) %>
-
-
- -
+
|
+
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
<%= link_to student_work_name,"javascript:void(0)" ,:title => student_work_name, :class => "linkGrey f14 StudentName break_word #{@homework.homework_type == 2 ? '' : 'width165'}"%>
-
+ |
<% if @homework.homework_type != 3 %>
- -
+
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
-
+ |
<% else %>
- -
+
<%= student_work.project.name %>
-
+ |
<% end %>
<% end %>
-
- -
+
<% if student_work.created_at && @homework.end_time%>
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(format_time(student_work.created_at)).strftime("%Y-%m-%d") %>
[迟交]
<% end %>
<% 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)%>
-
+ |
<% if @homework.homework_type == 2%>
- -
+
<%= student_work.system_score.nil? ? "--" : format("%.1f",student_work.system_score)%>
-
+ |
<% end%>
<% if @homework.anonymous_comment == 0%>
- -
+
<% if student_work.student_score.nil? %>
未参与
<% else %>
@@ -71,7 +69,7 @@
<%= format("%.1f",student_work.student_score)%> 分。
<% end%>
-
+ |
<% end %>
<% if student_work.homework_common && student_work.homework_common.teacher_priority == 1 && student_work.teacher_score %>
@@ -79,7 +77,7 @@
<% else %>
<% score = student_work.respond_to?("score") ? student_work.score : (student_work.final_score || 0) - student_work.absence_penalty - student_work.late_penalty%>
<% end %>
- -
+
<%= score.nil? ? "--" : format("%.1f",score<0 ? 0 : score)%>
<% unless score.nil?%>
@@ -97,9 +95,9 @@
<%= format("%.1f",score<0 ? 0 : score)%> 分。
<% end%>
-
- - 点击查看详情
-
+ |
+ 点击查看详情 |
+