diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index ec6214493..811540323 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -161,31 +161,30 @@
-
- - - - - - +
- - <%= l(:label_attachment) %> : - -
- <% if @bid.attachments.any?%> + <% unless @bid.attachments.empty? %> +
+ + + + + + - - - - - -
+ + <%= l(:label_attachment) %> : + +
<% options = {:author => true,:deletable => (@bid.author.id == User.current.id || User.current.admin? ? true : false),:wrap => true,:length => 7} %> <%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %> - <% end %> -
-
+
+
+ <% end%>