diff --git a/app/views/projects/list_files.rhtml b/app/views/projects/list_files.rhtml index 0871ba249..2b2e5e870 100644 --- a/app/views/projects/list_files.rhtml +++ b/app/views/projects/list_files.rhtml @@ -6,7 +6,7 @@ <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %> - +
<%= sort_header_tag('filename', :caption => l(:field_filename)) %> <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %> @@ -19,15 +19,19 @@ <% @containers.each do |container| %> <% next if container.attachments.empty? -%> <% if container.is_a?(Version) -%> - + + + <% end -%> <% container.attachments.each do |file| %> - "> - - - - - + "> + + + + +
<%=h container %>
+ <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %> +
<%= 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_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 %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 6ab3422bc..d13739573 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -110,6 +110,10 @@ tr.entry.file td.filename a { margin-left: 16px; } tr.changeset td.author { text-align: center; width: 15%; } tr.changeset td.committed_on { text-align: center; width: 15%; } +tr.file td { text-align: center; } +tr.file td.filename { text-align: left; padding-left: 24px; } +tr.file td.digest { font-size: 80%; } + tr.message { height: 2.6em; } tr.message td.last_message { font-size: 80%; } tr.message.locked td.subject a { background-image: url(../images/locked.png); }