diff --git a/app/views/attachments/_app_link.html.erb b/app/views/attachments/_app_link.html.erb new file mode 100644 index 00000000..9b27a957 --- /dev/null +++ b/app/views/attachments/_app_link.html.erb @@ -0,0 +1,12 @@ +
+<% for attachment in attachments %> +

<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%> + <% if attachment.is_text? %> + <%= link_to image_tag('magnifier.png'), + :controller => 'attachments', :action => 'show', + :id => attachment, :filename => attachment.filename %> + <% end %> + <%= h(" - #{attachment.description}") unless attachment.description.blank? %> + (<%= number_to_human_size attachment.filesize %>) + <% end -%> +

\ No newline at end of file