Sha256: b1748ff9620a420ee2acfade1a19046c4b1926d6305f12f4426b36b4d8110a64
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
<% blob_id = component[:attributes][:blob][:id] blob = ActiveStorage::Blob.find blob_id if blob_id alt = component[:attributes][:alt] caption = component[:attributes][:caption].to_s %> <figure class="<%= promethee_class_for component %>"> <%= image_tag url_for(blob.variant(resize: '1920')), class: 'img-responsive', alt: alt if blob %> <% unless caption.blank? %> <figcaption> <%= caption %> </figcaption> <% end %> </figure>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
promethee-1.4.6 | app/views/promethee/components/image/_show.html.erb |
promethee-1.4.5 | app/views/promethee/components/image/_show.html.erb |