Sha256: bc9e572dfa2fb66270e808d34ab286aa577371fe0e4ec09a04d2c41dc2dd4da0

Contents?: true

Size: 462 Bytes

Versions: 26

Compression:

Stored size: 462 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', :class => 'filename' %>
  <%= link_to span_tag('x'), cms_admin_upload_path(file), :method => :delete, :remote => true, :class => 'delete' %>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.42 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.41 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.40 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.39 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.38 app/views/cms_admin/uploads/_file.html.erb
comfortable_mexican_sofa-1.0.37 app/views/cms_admin/uploads/_file.html.erb