diff -r 4a9d543bbaaa app/views/files/index.html.erb --- a/app/views/files/index.html.erb Thu Oct 06 11:04:32 2011 +0000 +++ b/app/views/files/index.html.erb Thu Oct 06 14:52:25 2011 +0200 @@ -8,12 +8,12 @@ + <%= sort_header_tag('filename', :caption => l(:field_filename)) %> <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %> <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc') %> <%= sort_header_tag('downloads', :caption => l(:label_downloads_abbr), :default_order => 'desc') %> - <% @containers.each do |container| %> @@ -27,15 +27,15 @@ <% end -%> <% container.attachments.each do |file| %> "> + - <% end reset_cycle %>
MD5
+ <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file}, + :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %> + <%= link_to_attachment file, :download => true, :title => file.description %> <%= format_time(file.created_on) %> <%= number_to_human_size(file.filesize) %> <%= file.downloads %> <%= 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 %> -