From 2ca77d26b6519bba96e725f63efa5036696e7d34 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 29 Apr 2016 19:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=88=97=E8=A1=A8=E6=8A=A550?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_homework_detail.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_user_homework_detail.html.erb b/app/views/users/_user_homework_detail.html.erb index 4bab8d98f..43bde1779 100644 --- a/app/views/users/_user_homework_detail.html.erb +++ b/app/views/users/_user_homework_detail.html.erb @@ -71,7 +71,7 @@ <%= user_for_homework_common homework_common,is_teacher %> <% work = cur_user_works_for_homework homework_common %> - <% if homework_common.end_time < Date.today && !is_teacher && !work.nil? %> + <% if !is_teacher && !work.nil? && homework_common.end_time < Date.today %>
<%=link_to "追加附件", student_work_index_url_in_org(homework_common.id, 1), :class => 'c_blue', :title => "可追加作品修订附件" %>