匿评评分之后,我耳朵评分显示为黑色

This commit is contained in:
sw 2015-06-03 09:49:41 +08:00
parent 82cb7fac50
commit 0080a216dd
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@
<li class=" hwork_tit_e" style="width: 440px">
<%= link_to student_work.name, student_work_path(student_work),:remote => true%>
</li>
<li class=" hwork_code <%= student_work.teaching_asistant_score.nil? ? 'c_grey' : 'c_red'%>">
<% my_score = student_work_score(student_work,User.current) %>
<% my_score = student_work_score(student_work,User.current) %>
<li class=" hwork_code <%= my_score.nil? ? 'c_grey' : 'c_red'%>">
<%= my_score.nil? ? "--" : format("%.2f",my_score.score)%>
</li>
<div class="cl"></div>