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.rhtml @ 443:350acce374a2
History | View | Annotate | Download (882 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'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
|
| 8 |
:confirm => l(:text_are_you_sure),
|
| 9 |
:method => :post,
|
| 10 |
:class => 'delete',
|
| 11 |
:title => l(:button_delete) %>
|
| 12 |
<% end %>
|
| 13 |
<% if options[:author] %>
|
| 14 |
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span> |
| 15 |
<% end %>
|
| 16 |
</p>
|
| 17 |
<% end %>
|
| 18 |
</div>
|