# HG changeset patch # User Chris Cannam # Date 1350466957 -3600 # Node ID 6b978669cdac40fd42652859e01a3ae493ed1c64 # Parent e89e425134aea2b2c7ff350abe4df67029924ca1# Parent 19884e9d5effa63f115b9004951e409c0d3aa882 Merge from branch "bug_521" diff -r 19884e9d5eff -r 6b978669cdac app/views/attachments/_links.html.erb --- a/app/views/attachments/_links.html.erb Wed Oct 17 10:42:48 2012 +0100 +++ b/app/views/attachments/_links.html.erb Wed Oct 17 10:42:37 2012 +0100 @@ -2,7 +2,7 @@ <% for attachment in attachments %>

<%= link_to_attachment attachment, :class => 'icon icon-attachment' -%> <%= h(" - #{attachment.description}") unless attachment.description.blank? %> - (<%= number_to_human_size attachment.filesize %>) + <%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %> <% if options[:deletable] %> <%= link_to image_tag('delete.png'), attachment_path(attachment), :confirm => l(:text_are_you_sure), diff -r 19884e9d5eff -r 6b978669cdac config/locales/en.yml --- a/config/locales/en.yml Wed Oct 17 10:42:48 2012 +0100 +++ b/config/locales/en.yml Wed Oct 17 10:42:37 2012 +0100 @@ -487,6 +487,10 @@ zero: no projects one: 1 project other: "%{count} projects" + label_x_downloads: + zero: never downloaded + one: downloaded once + other: "downloaded %{count} times" label_project_all: All Projects label_project_latest: Latest projects label_projects_more: More projects diff -r 19884e9d5eff -r 6b978669cdac public/stylesheets/application.css --- a/public/stylesheets/application.css Wed Oct 17 10:42:48 2012 +0100 +++ b/public/stylesheets/application.css Wed Oct 17 10:42:37 2012 +0100 @@ -506,7 +506,8 @@ div.attachments { margin-top: 12px; } div.attachments p { margin:4px 0 2px 0; } div.attachments img { vertical-align: middle; } -div.attachments span.author { font-size: 0.9em; color: #888; } +div.attachments span.author { font-size: 0.9em; color: #888; font-style: italic; padding-left: 4px } +div.attachments span.size_and_count { font-size: 0.9em; color: #888; padding-left: 4px; } p.other-formats { text-align: right; font-size:0.9em; color: #666; } .other-formats span + span:before { content: "| "; }