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 @ 1026:b42553f6df71
History | View | Annotate | Download (951 Bytes)
| 1 | 0:513646585e45 | Chris | <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 | 964:3c5858c5794d | chris | <span class="size_and_count"><%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %></span> |
| 6 | 0:513646585e45 | Chris | <% if options[:deletable] %>
|
| 7 | 909:cbb26bc654de | Chris | <%= link_to image_tag('delete.png'), attachment_path(attachment),
|
| 8 | 0:513646585e45 | Chris | :confirm => l(:text_are_you_sure),
|
| 9 | 909:cbb26bc654de | Chris | :method => :delete,
|
| 10 | 0:513646585e45 | Chris | :class => 'delete',
|
| 11 | :title => l(:button_delete) %>
|
||
| 12 | <% end %>
|
||
| 13 | <% if options[:author] %>
|
||
| 14 | 909:cbb26bc654de | Chris | <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span> |
| 15 | 0:513646585e45 | Chris | <% end %>
|
| 16 | </p>
|
||
| 17 | <% end %>
|
||
| 18 | </div> |