From 87050a2adf7934db511accd5f44d5d1f712f3dc7 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 30 Sep 2016 17:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=82=E8=B5=B7=E7=9A=84=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E6=8A=A5500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_homework_opr.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_homework_opr.html.erb b/app/views/users/_homework_opr.html.erb index 53d16b15d..1074496d8 100644 --- a/app/views/users/_homework_opr.html.erb +++ b/app/views/users/_homework_opr.html.erb @@ -15,7 +15,7 @@ <%= user_for_homework_common activity,is_teacher %> <% work = cur_user_works_for_homework activity %> -<% if activity.end_time < Date.today && !is_teacher && !work.nil? && work.user == User.current %> +<% if !is_teacher && !work.nil? && work.user == User.current && activity.end_time < Date.today %>
<%=link_to "追加附件", student_work_index_url_in_org(activity.id, 2, 1), :class => 'c_blue', :title => "可追加作品修订附件" %>