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

Version Path
browsercms-artirix-4.0.4 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.3.3 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.3.2 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.3.1 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.3 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.2 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.1.1 app/views/cms/attachments/_attachment.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/cms/attachments/_attachment.html.erb
browsercms-4.0.0.rc1 app/views/cms/attachments/_attachment.html.erb
browsercms-4.0.0.beta app/views/cms/attachments/_attachment.html.erb