@@ -1,23 +1,23 | |||
|
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), |
|
14 | 14 | :method => :delete, |
|
15 | 15 | :class => 'delete', |
|
16 | 16 | :title => l(:button_delete) %> |
|
17 | 17 | <% end %> |
|
18 | 18 | <% if options[:author] %> |
|
19 | 19 | <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span> |
|
20 | 20 | <% end %> |
|
21 | 21 | </p> |
|
22 | 22 | <% end %> |
|
23 | 23 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now