#1619 作业未提交附件时增加提示

This commit is contained in:
sw 2014-11-26 15:33:36 +08:00
parent d073cca712
commit dd78bc25ff
1 changed files with 9 additions and 3 deletions

View File

@ -98,11 +98,17 @@
</div> </div>
<% end %> <% end %>
</p> </p>
<p style=" border-bottom:none; color:#333; margin-top:8px;"><strong><%= l(:label_attachment) %> <p style=" border-bottom:none; color:#333; margin-top:8px;">
<strong>
<%= l(:label_attachment) %>
</strong> </strong>
<span> <span>
<% options = {:author => true } %> <% if @homework.attachments.empty?%>
<%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %> <span style="color: #999999">尚未提交附件</span>
<% else%>
<% options = {:author => true } %>
<%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
<% end%>
</span> </span>
</p> </p>