Sha256: 4e37005ee2b0d94f5a5426c28141f45d2f4c39adc628fb2b6660ee857cf1a0f9
Contents?: true
Size: 641 Bytes
Versions: 12
Compression:
Stored size: 641 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) %></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_function "Delete", "$.cms.AttachmentManager.destroy(#{attachment.id})" if show_delete %></td> </tr>
Version data entries
12 entries across 12 versions & 1 rubygems