Sha256: 3bc9738a72f2d5970553bbfb4b0471a5cbcf793ce35fb39ec3bf5250e04757c7

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

.page-header
  = link_to t('.new_link'), new_cms_admin_site_file_path(@site), :class => 'btn pull-right'
  %h2= t('.title')

= render :partial => 'cms_admin/categories/index', :object => '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_cms_admin_site_file_path(@site, file)
            = render :partial => '/cms_admin/categories/categories', :object => file
          .item-meta
            = link_to file.file_file_name, file.file.url, :target => '_blank'
            
        %td
          .btn-group
            = link_to t('.edit'), edit_cms_admin_site_file_path(@site, file), :class => 'btn btn-small'
            = link_to t('.delete'), cms_admin_site_file_path(@site, file), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-small btn-danger'

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
comfortable_mexican_sofa-1.9.2 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.8.5 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.9.1 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.9.0 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.8.4 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.8.3 app/views/cms_admin/files/index.html.haml
comfypress-0.1.4 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.8.2 app/views/cms_admin/files/index.html.haml
comfypress-0.1.3 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.8.1 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.8.0 app/views/cms_admin/files/index.html.haml
comfortable_mexican_sofa-1.7.3 app/views/cms_admin/files/index.html.haml