Sha256: 90e55d32f13f5125bccd743ba481d92d890b6b9f7bd93a7a66176baceb57bc59
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 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 %> <% if caption.present? %> <figcaption><%= caption %></figcaption> <% end %> </figure>
Version data entries
3 entries across 3 versions & 1 rubygems