作品列表的文字调整

This commit is contained in:
cxt 2015-11-12 11:48:27 +08:00
parent 41751f08ba
commit 8fa790dd6b
1 changed files with 5 additions and 1 deletions

View File

@ -2,10 +2,14 @@
<span class="c_dark f14 fb fl mr30">
作品
<font class="f12 c_red">
(已有<%= @student_work_count%>人提交)
(<%= @student_work_count%>人已交)
</font>
<% if !@is_teacher && @stundet_works.empty?%>
<span class="f12 c_red">您尚未提交作品</span>
<% elsif !@is_teacher &&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>
<% elsif !@is_teacher &&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>
<% end %>
</span>
<%if @is_teacher || @homework.homework_detail_manual.comment_status == 3%>