Revision 960:c09e40c4a410

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">(<%= 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

Also available in: Unified diff