From ab96bf8e5e2d06b756fd1f42589ffeda10b57f95 Mon Sep 17 00:00:00 2001 From: cxt Date: Wed, 16 Dec 2015 16:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E5=93=81=E5=88=97=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?=E6=9C=AA=E5=8F=82=E4=B8=8E=E5=8C=BF=E8=AF=84=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E5=93=81=E6=98=BE=E7=A4=BA=E2=80=9C=E6=9C=AA=E5=8F=82=E4=B8=8E?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/_evaluation_un_work.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/student_work/_evaluation_un_work.html.erb b/app/views/student_work/_evaluation_un_work.html.erb index 641405fe4..0a4ab044a 100644 --- a/app/views/student_work/_evaluation_un_work.html.erb +++ b/app/views/student_work/_evaluation_un_work.html.erb @@ -57,7 +57,7 @@ <% if @homework.anonymous_comment == 0%>
  • - <%= student_work.student_score.nil? ? "--" : format("%.1f",student_work.student_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%>) @@ -84,7 +84,7 @@ 缺评扣分  <%= student_work.absence_penalty%> 分, 最终成绩为 -  <%= format("%.1f",score)%> 分。 +  <%= format("%.1f",score<0 ? 0 : score)%> 分。 <% end%>