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