Sha256: 31cc18720758d402d392015219868ab25d9766673e47685c1e7bff92a73ff5a5

Contents?: true

Size: 689 Bytes

Versions: 7

Compression:

Stored size: 689 Bytes

Contents

.file{:class => "#{dom_id(file)} #{file.is_image?? 'image' : nil}"}
  .file-name
    = link_to admin_cms_site_file_path(@site, file), :method => :delete, :remote => true, :data => {:confirm => t('.are_you_sure')}, :class => 'delete' do
      %i.icon-remove-circle
    = link_to file.file_file_name, file.file.url, :target => '_blank', :class => 'filename'
  
  .file-info{:data => {:url => file.file.url}}
    .thumb
      = image_tag file.file.url(:cms_thumb) if file.is_image?
    .details
      %input{:type => 'text', :value => file.file.url, :readonly => 'readonly'}
      .file-type= file.file_content_type
      .file-size= number_to_human_size(file.file_file_size, :locale => :en)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 app/views/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.11.1 app/views/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.11.0 app/views/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.10.3 app/views/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.10.2 app/views/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.10.1 app/views/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.10.0 app/views/admin/cms/files/_file.html.haml