diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb index 0b36d431b..bf797e441 100644 --- a/app/views/homework_attach/_show.html.erb +++ b/app/views/homework_attach/_show.html.erb @@ -98,11 +98,17 @@ <% end %>
-<%= l(:label_attachment) %>:
+
+
+ <%= l(:label_attachment) %>:
- <% options = {:author => true } %>
- <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
+ <% if @homework.attachments.empty?%>
+ 尚未提交附件
+ <% else%>
+ <% options = {:author => true } %>
+ <%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
+ <% end%>