Merge branch 'develop' into 'develop'

bug修复



See merge request !115
This commit is contained in:
黄井泉 2017-01-06 20:13:11 +08:00
commit a78585c203
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<% if !@is_teacher && my_work.nil? && User.current.member_of_course?(@course) %>
<span class="f12 c_red">您尚未提交作品</span>
<% unless @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
<%=link_to "提交作品", new_contestant_work_path(:work => @homework.id),:class => 'blueCir ml5 f12' %>
<%=link_to "提交作品", new_student_work_url_without_domain(@homework.id),:class => 'blueCir ml5 f12' %>
<% end %>
<% elsif !@is_teacher && my_work &&Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(Time.now.to_s).strftime("%Y-%m-%d") && !@stundet_works.empty?%>
<span class="f12 c_red">截止日期已过,已提交且不可修改</span>