@@ -1,13 +1,13 | |||
|
1 | 1 | <div class="attachments"> |
|
2 | 2 | <% for attachment in attachments %> |
|
3 | 3 | <p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%> |
|
4 | <%= h(" - #{attachment.description}") unless attachment.description.blank? %> | |
|
5 | <span class="size">(<%= number_to_human_size attachment.filesize %>)</span> | |
|
6 | 4 | <% if attachment.is_text? %> |
|
7 | 5 | <%= link_to image_tag('magnifier.png'), |
|
8 | 6 | :controller => 'attachments', :action => 'show', |
|
9 | 7 | :id => attachment, :filename => attachment.filename %> |
|
10 | 8 | <% end %> |
|
9 | <%= h(" - #{attachment.description}") unless attachment.description.blank? %> | |
|
10 | <span class="size">(<%= number_to_human_size attachment.filesize %>)</span> | |
|
11 | 11 | <% if options[:deletable] %> |
|
12 | 12 | <%= link_to image_tag('delete.png'), attachment_path(attachment), |
|
13 | 13 | :confirm => l(:text_are_you_sure), |
General Comments 0
You need to be logged in to leave comments.
Login now