<%= link_to "所有作品(#{@stundet_works.count})".html_safe,student_work_index_path(:homework => @homework.id), :class => "fl"%> <% if @show_all%> <% end%> <% if @is_teacher%>
<% if @homework.student_works.empty?%> <%= link_to "附件", "javascript:void(0)", class: "down_btn fr", :onclick => "alert('没有学生提交作业,无法下载附件')" %> <% else%> <%= link_to "附件", zipdown_assort_path(obj_class: @homework.class, obj_id: @homework, format: :json), remote: true, class: "down_btn fr", :id => "download_homework_attachments" %> <% end%> <%= 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%>
  • 学号
  • 学生姓名
  • 作品名称
  • <%= link_to "教师评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%> <% if @show_all && @order == "teacher_score"%> <% end%>
  • <%= link_to "教辅评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%> <% if @show_all && @order == "teaching_asistant_score"%> <% end%>
  • <%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%> <% if @show_all && @order == "student_score"%> <% end%>
  • <%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%> <% if @show_all && @order == "final_score"%> <% end%>
<% @stundet_works.each do |student_work|%> <%= render :partial => 'student_work',:locals => {:student_work => student_work}%>
<% end%>
<%= link_to(image_tag(url_to_avatar(@homework.user), :width => "42", :height => "42"), user_path(@homework.user), :class => "problem_pic fl") %>

<%= @homework.name%>

<% if @is_teacher%> <%= homework_anonymous_comment(@homework)%> <%= link_to(l(:button_edit),edit_homework_common_path(@homework), :class => "fr mr10 work_edit") %> <% else%> <%= student_anonymous_comment @homework %> <%= student_new_homework @homework %> <% end %>
<%= @homework.description.html_safe %>
截止时间:<%= @homework.end_time%>
<% if betweentime(@homework.end_time) < 0 %> <%= l(:label_commit_limit)%> <% else %>
<% end %>