- 序号
- 作品名称
- 姓名
- 学号
- 时间
- 作品名称
- 姓名
- 学号
- 时间
- 相似度
- 对比
<%if @homework.homework_type == 2 %>
<% @student_works.each_with_index do |student_work,index|%>
- <%=index+1%>
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
- <%=student_work_name%>
- <%=student_work.user.show_name%>
- <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
- <%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
<% if student_work.simi_id.to_i > 0 && @works_hash[student_work.simi_id.to_i] %>
<% simi_student_work = @works_hash[student_work.simi_id.to_i] %>
<% simi_student_work_name = simi_student_work.name.nil? || simi_student_work.name.empty? ? simi_student_work.user.show_name + '的作品' : simi_student_work.name%>
- <%=simi_student_work_name%>
- <%=simi_student_work.user.show_name%>
- <%= simi_student_work.user.user_extensions.nil? ? "--" : simi_student_work.user.user_extensions.student_id%>
- <%= Time.parse(format_time(simi_student_work.created_at)).strftime("%m-%d %H:%M")%>
<% if student_work.simi_value.to_i >= 90 %>
- <%=student_work.simi_value.to_i%>%
<% else %>
- <%=student_work.simi_value.to_i%>%
<% end %>
-
<%= link_to("查看", show_comparecode_course_path(:homework_id => @homework.id,:src_id => student_work.id,:dst_id => student_work.simi_id.to_i),:class => "cha-btn",:remote => true ) %>
<%else%>
- --
- --
- --
- --
- --
-
<% end %>
<%end%>
<%end%>