Mercurial > hg > soundsoftware-site
annotate app/views/attachments/_links.rhtml @ 93:7366fb57fce9 luisf
Merge
author | luisf |
---|---|
date | Thu, 16 Dec 2010 13:02:04 +0000 |
parents | 513646585e45 |
children |
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@0 | 7 <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment}, |
Chris@0 | 8 :confirm => l(:text_are_you_sure), |
Chris@0 | 9 :method => :post, |
Chris@0 | 10 :class => 'delete', |
Chris@0 | 11 :title => l(:button_delete) %> |
Chris@0 | 12 <% end %> |
Chris@0 | 13 <% if options[:author] %> |
Chris@0 | 14 <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span> |
Chris@0 | 15 <% end %> |
Chris@0 | 16 </p> |
Chris@0 | 17 <% end %> |
Chris@0 | 18 </div> |