Mercurial > hg > soundsoftware-site
annotate .svn/pristine/89/89ce597feae0a741c7652fb0adcafccae6118a18.svn-base @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 <div class="attachments"> |
Chris@1296 | 2 <% for attachment in attachments %> |
Chris@1296 | 3 <p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%> |
Chris@1296 | 4 <% if attachment.is_text? %> |
Chris@1296 | 5 <%= link_to image_tag('magnifier.png'), |
Chris@1296 | 6 :controller => 'attachments', :action => 'show', |
Chris@1296 | 7 :id => attachment, :filename => attachment.filename %> |
Chris@1296 | 8 <% end %> |
Chris@1296 | 9 <%= h(" - #{attachment.description}") unless attachment.description.blank? %> |
Chris@1296 | 10 <span class="size">(<%= number_to_human_size attachment.filesize %>)</span> |
Chris@1296 | 11 <% if options[:deletable] %> |
Chris@1296 | 12 <%= link_to image_tag('delete.png'), attachment_path(attachment), |
Chris@1296 | 13 :data => {:confirm => l(:text_are_you_sure)}, |
Chris@1296 | 14 :method => :delete, |
Chris@1296 | 15 :class => 'delete', |
Chris@1296 | 16 :title => l(:button_delete) %> |
Chris@1296 | 17 <% end %> |
Chris@1296 | 18 <% if options[:author] %> |
Chris@1296 | 19 <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span> |
Chris@1296 | 20 <% end %> |
Chris@1296 | 21 </p> |
Chris@1296 | 22 <% end %> |
Chris@1296 | 23 <% if defined?(thumbnails) && thumbnails %> |
Chris@1296 | 24 <% images = attachments.select(&:thumbnailable?) %> |
Chris@1296 | 25 <% if images.any? %> |
Chris@1296 | 26 <div class="thumbnails"> |
Chris@1296 | 27 <% images.each do |attachment| %> |
Chris@1296 | 28 <div><%= thumbnail_tag(attachment) %></div> |
Chris@1296 | 29 <% end %> |
Chris@1296 | 30 </div> |
Chris@1296 | 31 <% end %> |
Chris@1296 | 32 <% end %> |
Chris@1296 | 33 </div> |