<%= link_to_attachment attachment, class: 'icon icon-attachment' -%>
(<%= number_to_human_size attachment.filesize %>)
<%= link_to_attachment attachment, class: 'icon-only icon-download', title: l(:button_download), download: true -%>
|
<%= attachment.description unless attachment.description.blank? %> |
<% if options[:author] %>
<%= attachment.author %>, <%= format_time(attachment.created_on) %>
<% end %>
|
<% if options[:deletable] %>
<%= link_to l(:button_delete), attachment_path(attachment),
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:class => 'delete icon-only icon-del',
:title => l(:button_delete) %>
<% end %>
|
<% end %>