_links.html.erb
18 lines
| 843 B
| text/plain
|
TextLexer
|
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] %> | ||
|
r7828 | <%= link_to image_tag('delete.png'), attachment_path(attachment), | ||
|
r1166 | :confirm => l(:text_are_you_sure), | ||
|
r7828 | :method => :delete, | ||
|
r1166 | :class => 'delete', | ||
:title => l(:button_delete) %> | ||||
<% end %> | ||||
|
r2114 | <% if options[:author] %> | ||
|
r6238 | <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span> | ||
|
r538 | <% end %> | ||
</p> | ||||
<% end %> | ||||
</div> | ||||