Sha256: ec0e2cf4f7ab525fe91be27e2aa1e433df3fc10c205ecbc4caa00f4ba87bcc79

Contents?: true

Size: 582 Bytes

Versions: 7

Compression:

Stored size: 582 Bytes

Contents

.fragment-attachments
  - attachments.each do |attachment|
    - if attachment.image?
      - variant = attachment.variant(Comfy::Cms::File::VARIANT_SIZE[:thumb])
      - thumb = image_tag variant, size: "200x150"
    .btn.btn-outline-light
      = link_to attachment.filename, attachment, {data: {toggle: "page-file-popover", content: thumb}}
      %label.custom-control.custom-checkbox
        = check_box_tag "#{object_name}[fragments_attributes][#{index}][file_ids_destroy][]", attachment.id, false, id: nil, class: "custom-control-input"
        %span.custom-control-indicator

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.7 app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml
comfortable_mexican_sofa-2.0.6 app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml
comfortable_mexican_sofa-2.0.5 app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml
comfortable_mexican_sofa-2.0.4 app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml
comfortable_mexican_sofa-2.0.3 app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml
comfortable_mexican_sofa-2.0.2 app/views/comfy/admin/cms/pages/_fragment_attachments.html.haml
comfortable_mexican_sofa-2.0.1 app/views/comfy/admin/cms/pages/_fragment_attachments.html.haml