Chris@909:
Chris@909: <% for attachment in attachments %> Chris@909:

<%= link_to_attachment attachment, :class => 'icon icon-attachment' -%> Chris@909: <%= h(" - #{attachment.description}") unless attachment.description.blank? %> Chris@909: (<%= number_to_human_size attachment.filesize %>) Chris@909: <% if options[:deletable] %> Chris@909: <%= link_to image_tag('delete.png'), attachment_path(attachment), Chris@909: :confirm => l(:text_are_you_sure), Chris@909: :method => :delete, Chris@909: :class => 'delete', Chris@909: :title => l(:button_delete) %> Chris@909: <% end %> Chris@909: <% if options[:author] %> Chris@909: <%= h(attachment.author) %>, <%= format_time(attachment.created_on) %> Chris@909: <% end %> Chris@909:

Chris@909: <% end %> Chris@909: