To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / attachments / _links.html.erb @ 960:c09e40c4a410

History | View | Annotate | Download (943 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 960:c09e40c4a410 chris
  <span class="size">(<%= 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>