annotate app/views/attachments/_links.html.erb @ 1481:93934eec7b56
issue_540
Close obsolete branch issue_540
author |
Chris Cannam |
date |
Sat, 24 Nov 2012 17:53:51 +0000 |
parents |
3c5858c5794d |
children |
bb32da3bea34 |
rev |
line source |
Chris@0
|
1 <div class="attachments">
|
Chris@0
|
2 <% for attachment in attachments %>
|
Chris@0
|
3 <p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
|
Chris@0
|
4 <%= h(" - #{attachment.description}") unless attachment.description.blank? %>
|
chris@964
|
5 <span class="size_and_count"><%= number_to_human_size attachment.filesize %><%= ", " + l(:label_x_downloads, :count => attachment.downloads) unless attachment.downloads == 0 %></span>
|
Chris@0
|
6 <% if options[:deletable] %>
|
Chris@909
|
7 <%= link_to image_tag('delete.png'), attachment_path(attachment),
|
Chris@0
|
8 :confirm => l(:text_are_you_sure),
|
Chris@909
|
9 :method => :delete,
|
Chris@0
|
10 :class => 'delete',
|
Chris@0
|
11 :title => l(:button_delete) %>
|
Chris@0
|
12 <% end %>
|
Chris@0
|
13 <% if options[:author] %>
|
Chris@909
|
14 <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
|
Chris@0
|
15 <% end %>
|
Chris@0
|
16 </p>
|
Chris@0
|
17 <% end %>
|
Chris@0
|
18 </div>
|