2007-05-26 19:42:37 +04:00
|
|
|
<div class="attachments">
|
|
|
|
<% for attachment in attachments %>
|
2008-07-22 21:55:19 +04:00
|
|
|
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
|
2008-02-29 22:46:58 +03:00
|
|
|
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
|
|
|
|
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
|
2008-12-09 19:54:46 +03:00
|
|
|
<% if options[:deletable] %>
|
|
|
|
<%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
|
2008-02-29 22:46:58 +03:00
|
|
|
:confirm => l(:text_are_you_sure),
|
|
|
|
:method => :post,
|
|
|
|
:class => 'delete',
|
|
|
|
:title => l(:button_delete) %>
|
|
|
|
<% end %>
|
2008-12-09 19:54:46 +03:00
|
|
|
<% if options[:author] %>
|
2008-02-29 22:46:58 +03:00
|
|
|
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
|
2007-05-26 19:42:37 +04:00
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|