_links.rhtml
18 lines
| 878 B
| text/html+ruby
|
RhtmlLexer
|
r538 | <div class="attachments"> | ||
<% for attachment in attachments %> | ||||
|
r1669 | <p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%> | ||
|
r1166 | <%= h(" - #{attachment.description}") unless attachment.description.blank? %> | ||
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span> | ||||
|
r538 | <% if options[:delete_url] %> | ||
|
r1166 | <%= 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> | ||||
|
r538 | <% end %> | ||
</p> | ||||
<% end %> | ||||
</div> | ||||