annotate app/views/attachments/_links.html.erb @ 929:5f33065ddc4b
redmine-1.3
Update to Redmine SVN rev 9414 on 1.3-stable branch
author |
Chris Cannam |
date |
Wed, 27 Jun 2012 14:54:18 +0100 |
parents |
cbb26bc654de |
children |
c09e40c4a410 433d4f72a19b |
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@0
|
5 <span class="size">(<%= number_to_human_size attachment.filesize %>)</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>
|