Revision 965:4018f255c97b

View differences:

app/views/attachments/_links.html.erb
2 2
<% for attachment in attachments %>
3 3
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
4 4
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
5
  <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
5
  <span class="size_and_count"><%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %></span>
6 6
  <% if options[:deletable] %>
7 7
    <%= link_to image_tag('delete.png'), attachment_path(attachment),
8 8
                                         :confirm => l(:text_are_you_sure),
config/locales/en.yml
487 487
    zero:  no projects
488 488
    one:   1 project
489 489
    other: "%{count} projects"
490
  label_x_downloads:
491
    zero:  never downloaded
492
    one:   downloaded once
493
    other: "downloaded %{count} times"
490 494
  label_project_all: All Projects
491 495
  label_project_latest: Latest projects
492 496
  label_projects_more: More projects
public/stylesheets/application.css
506 506
div.attachments { margin-top: 12px; }
507 507
div.attachments p { margin:4px 0 2px 0; }
508 508
div.attachments img { vertical-align: middle; }
509
div.attachments span.author { font-size: 0.9em; color: #888; }
509
div.attachments span.author { font-size: 0.9em; color: #888; font-style: italic; padding-left: 4px }
510
div.attachments span.size_and_count { font-size: 0.9em; color: #888; padding-left: 4px; }
510 511

  
511 512
p.other-formats { text-align: right; font-size:0.9em; color: #666; }
512 513
.other-formats span + span:before { content: "| "; }

Also available in: Unified diff