Sha256: 8a3817f902c45df9ce3a71f4c842c854ac547946f9dcb59699a237bce26a08ad
Contents?: true
Size: 738 Bytes
Versions: 10
Compression:
Stored size: 738 Bytes
Contents
<% show_delete = true show_delete = can_delete if defined?(can_delete) %> <tr id="<%= dom_id(attachment) %>"> <% if attachment.is_image? %> <td><%= link_to(image_tag(attachment_path_for(attachment), :size => '60x60', :data => {:purpose => 'attachment'}), attachment_path_for(attachment), target: "_blank") %></td> <% else %> <td><%= image_tag "cms/icons/file_types/#{attachment.icon}.png" %> <% end %> <td><%= attachment.attachment_name.singularize.capitalize %></td> <td><%= number_to_human_size(attachment.size) %></td> <td><%= link_to("Delete", '#', data: {purpose: 'delete-attachment', id: attachment.id}, class: 'btn btn-mini btn-danger') if show_delete %></td> </tr>
Version data entries
10 entries across 10 versions & 2 rubygems