Sha256: 8c2db4b2b5fb0106e8185581e3c73043e816845f863ef65e3901fe04e4d73c6b

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

<div class='file' id='<%= dom_id(file) %>'>
  <%  file_name = file.file_file_name 
      file_ext  = file.file_file_name.split('.').last
      if (file_name.size - file_ext.size) > 30
        file_name = file_name.truncate(30) + file_ext
      end 
  %>
  <%= link_to file_name, file.file.url, :target => '_blank' %>
  <%= link_to span_tag('x'), cms_admin_upload_path(file), :method => :delete, :remote => true, :class => 'delete' %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.36 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.35 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.34 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.33 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.32 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.31 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.30 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.29 app/views/cms_admin/uploads/_file.html.erb