Sha256: 001e1510b8355b21e9e285829f1000046bcb75a6fee03b5874c8f27bd228106d

Contents?: true

Size: 499 Bytes

Versions: 7

Compression:

Stored size: 499 Bytes

Contents

<div class='file <%= 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_site_file_path(@site, file), :method => :delete, :remote => true, :confirm => t('.are_you_sure'), :class => 'delete' %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.5.11 app/views/cms_admin/files/_file.html.erb
comfortable_mexican_sofa-1.5.10 app/views/cms_admin/files/_file.html.erb
comfortable_mexican_sofa-1.5.9 app/views/cms_admin/files/_file.html.erb
comfortable_mexican_sofa-1.5.8 app/views/cms_admin/files/_file.html.erb
comfortable_mexican_sofa-1.5.7 app/views/cms_admin/files/_file.html.erb
comfortable_mexican_sofa-1.5.6 app/views/cms_admin/files/_file.html.erb
comfortable_mexican_sofa-1.5.5 app/views/cms_admin/files/_file.html.erb