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

Version Path
browsercms-4.0.0.alpha app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.7 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.6 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.5 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.4 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.3 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.2 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.1 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.0 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.0.rc3 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.0.rc2 app/views/cms/attachments/_attachment.html.erb
browsercms-3.5.0.rc1 app/views/cms/attachments/_attachment.html.erb