Sha256: 57add9ee0bcab18028c3c46c49af624762c78ba5c05f3ca4ac6deea2b20a02b6
Contents?: true
Size: 1.14 KB
Versions: 6
Compression:
Stored size: 1.14 KB
Contents
%tr{:id => dom_id(file)} %td - if file.is_image? - icon_style = "background: url('#{file.file.url(:cms_thumb)}') no-repeat center" .icon{:style => icon_style} - if !params[:category].present? && @site.files.count > 1 .dragger %span ⇅ %td.main .item-title = link_to file.label, edit_comfy_admin_cms_site_file_path(@site, file) = render :partial => 'comfy/admin/cms/categories/categories', :object => file .item-meta %input.file-path{:type => 'text', :value => file.file.url, :readonly => 'readonly'} = link_to file.file.url, :title => file.file_file_name, :target => '_blank' do %span.glyphicon.glyphicon-link %td .content-type = truncate(file.file_content_type) .file-size = number_to_human_size(file.file_file_size, :locale => :en) %td .btn-group.btn-group-sm = link_to t('.edit'), edit_comfy_admin_cms_site_file_path(@site, file), :class => 'btn btn-default' = link_to t('.delete'), comfy_admin_cms_site_file_path(@site, file), :method => :delete, :remote => true, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-danger'
Version data entries
6 entries across 6 versions & 1 rubygems