我收到的作业页面调整
This commit is contained in:
parent
b1a71d12a9
commit
b3b9ed1c2f
|
@ -12,9 +12,9 @@
|
|||
</h3>
|
||||
<div class="cl"></div>
|
||||
<p class="sy_cgrey clear">
|
||||
<span class="mr15 fl"><%= cur_homework_end_time homework %></span>
|
||||
<span class="mr30 fl"><%= cur_homework_end_time homework %></span>
|
||||
<% my_work = homework.student_works.where("user_id = ? && work_status != 0",User.current).first %>
|
||||
<span class="fl">状态:</span><span class="<%= my_work ? '' : 'hw_cir_nomal hw_cir_lorange' %> fl mr15"><%= my_work ? '已提交' : '未提交' %></span>
|
||||
<span class="fl">状态:</span><span class="<%= my_work ? '' : 'hw_cir_nomal hw_cir_lorange' %> fl mr30"><%= my_work ? '已提交' : '未提交' %></span>
|
||||
<span class="fl">成绩:</span>
|
||||
<% if my_work && !my_work.work_score.nil? %>
|
||||
<span class="sy_corange hw_w40 fl mr15"><%= format("%.1f",my_work.work_score.to_f) %></span>
|
||||
|
|
Loading…
Reference in New Issue