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