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