From 1c32c47d4921e1e3315490fbe412b8c20efadf22 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 17 Jan 2017 14:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E5=8F=91=E5=B8=83=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E5=92=8C=E6=88=91=E6=94=B6=E5=88=B0=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BF=A1=E6=81=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=A7=86=E8=A7=89=E6=95=88=E6=9E=9C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_manage_homework_list.html.erb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/users/_manage_homework_list.html.erb b/app/views/users/_manage_homework_list.html.erb index be2ef9fc0..bdef131c2 100644 --- a/app/views/users/_manage_homework_list.html.erb +++ b/app/views/users/_manage_homework_list.html.erb @@ -12,13 +12,14 @@
- <%= (cur_homework_end_time homework).html_safe %> + <%= (cur_homework_end_time homework).html_safe %> 未交: - <%= homework.course.student.count - homework.student_works.has_committed.count %> - 已评: - <%= homework.student_works.where("work_status != 0 and (teacher_score is not null or teaching_asistant_score is not null)").count %> - 未评: - <%= homework.student_works.where("work_status != 0 and teacher_score is null and teaching_asistant_score is null").count %> + <%= homework.course.student.count - homework.student_works.has_committed.count %> + 已评: + <%= homework.student_works.where("work_status != 0 and (teacher_score is not null or teaching_asistant_score is not null)").count %> + <% not_evaluate_count = homework.student_works.where("work_status != 0 and teacher_score is null and teaching_asistant_score is null").count %> + 未评: + hw_w30 fl mr30"><%= not_evaluate_count %>
<% if homework.student_works.has_committed.count == 0 %>