%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<% for attachment in attachments %>
<%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
(<%= number_to_human_size attachment.filesize %>)
<% if options[:deletable] %>
<%= link_to image_tag('delete.png', :alt => l(:button_delete), :title => l(:button_delete)),
attachment_path(attachment),
{ :confirm => l(:text_are_you_sure),
:method => :delete,
:class => 'delete',
:title => l(:button_delete) } %>
<% end %>
<% if options[:author] %>
<%= h(attachment.author) %>, <%= format_time(attachment.created_on) %>
<% end %>
<% end %>