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 / .svn / pristine / 87 / 8719788cc5feae1f6d13316748ca22d737c8a820.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (843 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">(<%= number_to_human_size attachment.filesize %>)</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>