From 25fd655a56c5aec8fa66822ec9339355488c6546 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Thu, 14 Apr 2016 14:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AC=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E6=9F=A5=E9=87=8D=E7=BB=93=E6=9E=9C=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/code_repeat.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/courses/code_repeat.html.erb b/app/views/courses/code_repeat.html.erb index 9e026c293..8a48cfda4 100644 --- a/app/views/courses/code_repeat.html.erb +++ b/app/views/courses/code_repeat.html.erb @@ -28,23 +28,23 @@
  • <%=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 > 0 && @works_hash[student_work.simi_id] %> - <% simi_student_work = @works_hash[student_work.simi_id] %> + <% 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 >= 90 %> -
  • <%=student_work.simi_value%>%
  • + <% if student_work.simi_value.to_i >= 90 %> +
  • <%=student_work.simi_value.to_i%>%
  • <% else %> -
  • <%=student_work.simi_value%>%
  • +
  • <%=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),:class => "cha-btn",:remote => true ) %> + <%= 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%>