Sha256: 213e3607b223fb31d1fdafe793a4f3c8b731637dd8e2f9b3926fbdf5749ae52d

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

.file{:class => "#{dom_id(file)} #{file.is_image?? 'image' : nil}"}
  .file-name
    = link_to comfy_admin_cms_site_file_path(@site, file), :method => :delete, :remote => true, :data => {:confirm => t('.are_you_sure')}, :class => 'delete' do
      %i.glyphicon.glyphicon-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

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.2 app/views/comfy/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.12.1 app/views/comfy/admin/cms/files/_file.html.haml
comfortable_mexican_sofa-1.12.0 app/views/comfy/admin/cms/files/_file.html.haml