diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 5a9a5e6fe..0844fa355 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -16,16 +16,16 @@ -<% @containers.each do |container| %> +<% @containers.each do |container| %> <% next if container.attachments.empty? -%> - <% if container.is_a?(Version) -%> + <% if container.is_a?(Version) -%> - - <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %> - - - <% end -%> - <% container.attachments.each do |file| %> + + <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %> + + + <% end -%> + <% container.attachments.each do |file| %> "> <%= link_to_attachment file, :download => true, :title => file.description %> <%= format_time(file.created_on) %> @@ -34,9 +34,9 @@ <%= file.digest %> <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file}, - :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %> + :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %> - + <% end reset_cycle %> <% end %>