Sha256: 2f2a2efd6890786a0e4e0fb7412f88f29deb1b45b788814c9b7f369b19f6273b

Contents?: true

Size: 1.31 KB

Versions: 13

Compression:

Stored size: 1.31 KB

Contents

%li{data: {id: file.id}}
  :ruby
    file_tag  = cms_file_link_tag(file)
    thumb_url = url_for(file.attachment.representation(resize_to_limit: [200, nil])) if file.attachment.variable?
  .row
    .col-md-5.item
      .item-controls.d-none.d-lg-block
        - if !params[:categories].present? && @site.files.count > 1
          .dragger
            %i.fas.fa-bars
      .item-content
        .item-title
          = link_to file.label, file.attachment, target: "_blank",
                    data: {cms_file_thumb_url: thumb_url, cms_file_link_tag: file_tag}
        .item-meta
          .content-type
            = truncate(file.attachment.content_type)
          .file-size
            = number_to_human_size(file.attachment.byte_size)

    .col-md-2.item-categories.d-flex.align-items-center
      = render partial: "occams/admin/cms/categories/categories", object: file

    .col-md-2.d-flex.align-items-center
      %span.file-path
        = file_tag

    .col-md-3.d-flex.align-items-center.justify-content-md-end
      .btn-group.btn-group-sm
        = link_to t(".edit"), edit_occams_admin_cms_site_file_path(@site, file), class: "btn btn-outline-secondary"
        = link_to t(".delete"), occams_admin_cms_site_file_path(@site, file), method: :delete, remote: true, data: {confirm: t(".are_you_sure")}, class: "btn btn-danger"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
occams-1.1.0 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.8 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.7.3 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.7.2 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.7.1 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.7 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.6.1 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.6 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.5 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.4 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.3 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.2 app/views/occams/admin/cms/files/_file.html.haml
occams-1.0.1 app/views/occams/admin/cms/files/_file.html.haml