分数显示tip

This commit is contained in:
Tim 2016-10-14 16:13:30 +08:00
parent bb0833c054
commit 2955d07f7c
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,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 %>
<td class="hworkList70 <%= score_color score%> student_final_scor_info">
<td class="hworkList70 <%= score_color score%> student_final_scor_info pr">
<%= score.nil? ? "--" : format("%.1f",score<0 ? 0 : score)%>
<% unless score.nil?%>
<div class="score-tip none tl" style="line-height: 18px;">