Sha256: 5590d46f1e020faec1eb28415a6c8fcbba24329e61a1632675a0804f7bf9f5d3

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 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: "comfy/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_comfy_admin_cms_site_file_path(@site, file), class: "btn btn-outline-secondary"
        = 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

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_media_surfer-3.0.0 app/views/comfy/admin/cms/files/_file.html.haml