##// END OF EJS Templates
Moved the magnifier just after the filename....
Jean-Philippe Lang -
r9198:f05f84a2eac0
parent child
Show More
@@ -1,13 +1,13
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),
General Comments 0
You need to be logged in to leave comments. Login now