_links.rhtml
18 lines
| 882 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> | ||||
|
r2114 | <% if options[:deletable] %> | ||
<%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment}, | ||||
|
r1166 | :confirm => l(:text_are_you_sure), | ||
:method => :post, | ||||
:class => 'delete', | ||||
:title => l(:button_delete) %> | ||||
<% end %> | ||||
|
r2114 | <% if options[:author] %> | ||
|
r1166 | <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span> | ||
|
r538 | <% end %> | ||
</p> | ||||
<% end %> | ||||
</div> | ||||