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