作业列表报500

This commit is contained in:
cxt 2016-04-29 19:49:09 +08:00
parent 0bb6d42c80
commit 2ca77d26b6
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
<%= user_for_homework_common homework_common,is_teacher %> <%= user_for_homework_common homework_common,is_teacher %>
</div> </div>
<% work = cur_user_works_for_homework homework_common %> <% 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 %>
<div class="homepagePostSubmit"> <div class="homepagePostSubmit">
<%=link_to "追加附件", student_work_index_url_in_org(homework_common.id, 1), :class => 'c_blue', :title => "可追加作品修订附件" %> <%=link_to "追加附件", student_work_index_url_in_org(homework_common.id, 1), :class => 'c_blue', :title => "可追加作品修订附件" %>
</div> </div>