From e6ebcb7ac6f0a2547f4e3ee29364392f9a336522 Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 29 Dec 2015 11:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E5=93=81=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=88=AA=E6=AD=A2=E6=97=B6=E9=97=B4=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=8F=90=E4=BA=A4=E6=88=AA=E6=AD=A2=E6=97=B6=E9=97=B4?= =?UTF-8?q?/=E5=8C=BF=E8=AF=84=E6=88=AA=E6=AD=A2=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/index.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index c6d2bd313..b314bcf6d 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -170,7 +170,11 @@
-
截止时间:<%= @homework.end_time %> 23:59
+ <% if @homework.homework_detail_manual && @homework.homework_detail_manual.comment_status < 2 %> +
提交截止时间:<%= @homework.end_time %> 23:59
+ <% elsif @homework.homework_detail_manual && @homework.homework_detail_manual.comment_status >= 2 %> +
匿评截止时间:<%= @homework.homework_detail_manual.evaluation_end %> 23:59
+ <% end %> <% if @homework.homework_detail_manual.comment_status == 0 %>
发布时间:<%= @homework.publish_time %> 00:00
<% end %>