我发布的作业和我收到的作业页面,信息显示视觉效果调整

This commit is contained in:
daiao 2017-01-17 14:46:44 +08:00
parent e03d80de69
commit 1c32c47d49
1 changed files with 7 additions and 6 deletions

View File

@ -12,13 +12,14 @@
</h3>
<div class="cl"></div>
<p class="sy_cgrey clear">
<span class="mr15 fl"><%= (cur_homework_end_time homework).html_safe %></span>
<span class="fl mr30"><%= (cur_homework_end_time homework).html_safe %></span>
<span class="fl">未交:</span>
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.course.student.count - homework.student_works.has_committed.count %></span>
<span class="fl c_green">已评:</span>
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.student_works.where("work_status != 0 and (teacher_score is not null or teaching_asistant_score is not null)").count %></span>
<span class="fl c_red">未评:</span>
<span class="sy_cgrey hw_w30 fl mr15"><%= homework.student_works.where("work_status != 0 and teacher_score is null and teaching_asistant_score is null").count %></span>
<span class="sy_cgrey hw_w30 fl mr30"><%= homework.course.student.count - homework.student_works.has_committed.count %></span>
<span class="fl">已评:</span>
<span class="sy_cgrey hw_w30 fl mr30"><%= homework.student_works.where("work_status != 0 and (teacher_score is not null or teaching_asistant_score is not null)").count %></span>
<% not_evaluate_count = homework.student_works.where("work_status != 0 and teacher_score is null and teaching_asistant_score is null").count %>
<span class="fl">未评:</span>
<span class="<%= not_evaluate_count > 0 ? "c_red" : "sy_cgrey" %> hw_w30 fl mr30"><%= not_evaluate_count %></span>
</p>
</div>
<% if homework.student_works.has_committed.count == 0 %>