From e3a6f0b6b472cd382d73355d01edb094213a0744 Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 3 Jan 2017 11:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E2=80=9C=E6=94=B6=E5=88=B0=E7=9A=84?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E2=80=9D=E7=BB=84=E5=91=98=E8=AF=84=E5=88=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E6=98=AF=E7=BB=84=E9=95=BF=E8=AF=84?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_receive_homework_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_receive_homework_list.html.erb b/app/views/users/_receive_homework_list.html.erb index a31ebc1ea..c5b073ee2 100644 --- a/app/views/users/_receive_homework_list.html.erb +++ b/app/views/users/_receive_homework_list.html.erb @@ -17,7 +17,7 @@ <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey' %> 类别:<%=homework.homework_type_ch %> - <% my_work = cur_user_works_for_homework(homework) %> + <% my_work = homework.student_works.where("user_id = ? && work_status != 0",User.current).first %> 状态:<%= my_work ? '已提交' : '未提交' %> 作品:<%=homework.student_works.has_committed.count %> 成绩: