Sha256: b1941522f4468f1b1e55c188d5aed748104433ea243ce0103995997e41bddafa

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

.page-header
  = link_to t('.new_link'), new_comfy_admin_cms_site_file_path(@site), :class => 'btn btn-default pull-right'
  %h2= t('.title')
  
= render 'comfy/admin/cms/partials/files_before'

= render :partial => 'comfy/admin/cms/categories/index', :object => 'Comfy::Cms::File'

%table.table.table-hover.table-bordered
  %tbody.sortable
    - @files.each do |file|
      %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
            = link_to file.file_file_name, file.file.url, :target => '_blank'
        %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, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-danger'

= render 'comfy/admin/cms/partials/files_after'

Version data entries

3 entries across 3 versions & 1 rubygems

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