Revision 964:3c5858c5794d app/views
| 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 %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %>)</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), |
Also available in: Unified diff