附件形式提交的作业处,迟交标记添加

This commit is contained in:
Wen 2014-04-16 10:35:01 +08:00
parent 30a70bba74
commit 9fd7f11a47
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,12 @@
<td>
<table width="580px" border="0">
<tr>
<td colspan="2" valign="top"><strong> <%= link_to homework.user, user_path(homework.user)%></strong> <span class="font_lighter">已提交</span></td>
<td colspan="1" valign="top"><strong> <%= link_to homework.user, user_path(homework.user)%></strong> <span class="font_lighter">已提交</span></td>
<td valign="top" align="right">
<% if Time.parse(@bid.deadline.to_s) > Time.parse(homework.attachments[0].created_on.to_s) %>
<span class="required">迟交</span>
<% end %>
</td>
</tr>
<tr>
<td colspan="2" valign="top">&nbsp;