作业列表增加作业附件显示

This commit is contained in:
sw 2015-06-03 09:59:15 +08:00
parent 0080a216dd
commit 56c88dfd1d
1 changed files with 13 additions and 0 deletions

View File

@ -45,6 +45,19 @@
<%= l(:button_more)%>...
<span class="g-arr-down"></span>
</div>
<div class="cl"></div>
<div class="mt5">
<% unless homework.attachments.empty?%>
<span class="tit_fb" style="width: auto;"> 附件:</span>
<div class="fl mb5">
<%= render :partial => 'student_work/work_attachments', :locals => {:attachments => homework.attachments} %>
</div>
<% end%>
</div>
<div class="cl"></div>
<span class="fl"><%= l(:label_end_time)%><%= homework.end_time%></span>
<% if betweentime(homework.end_time) < 0 %>
<span class='fr mr10 c_red '>