To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / attachments / _links.html.erb @ 988:7c94a1b38c2f
History | View | Annotate | Download (951 Bytes)
| 1 |
<div class="attachments"> |
|---|---|
| 2 |
<% for attachment in attachments %>
|
| 3 |
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%> |
| 4 |
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
|
| 5 |
<span class="size_and_count"><%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %></span> |
| 6 |
<% if options[:deletable] %>
|
| 7 |
<%= link_to image_tag('delete.png'), attachment_path(attachment),
|
| 8 |
:confirm => l(:text_are_you_sure),
|
| 9 |
:method => :delete,
|
| 10 |
:class => 'delete',
|
| 11 |
:title => l(:button_delete) %>
|
| 12 |
<% end %>
|
| 13 |
<% if options[:author] %>
|
| 14 |
<span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span> |
| 15 |
<% end %>
|
| 16 |
</p>
|
| 17 |
<% end %>
|
| 18 |
</div>
|