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>
|
2007-05-26 19:42:37 +04:00
|
|
|
<% if options[:delete_url] %>
|
2008-02-29 22:46:58 +03:00
|
|
|
<%= link_to image_tag('delete.png'), options[:delete_url].update({:attachment_id => attachment}),
|
|
|
|
:confirm => l(:text_are_you_sure),
|
|
|
|
:method => :post,
|
|
|
|
:class => 'delete',
|
|
|
|
:title => l(:button_delete) %>
|
|
|
|
<% end %>
|
|
|
|
<% unless options[:no_author] %>
|
|
|
|
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
|
2007-05-26 19:42:37 +04:00
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|