Sha256: c7f57482754a12f48588514c737113078c46741d2253a7105a86e1b2eb18f172
Contents?: true
Size: 478 Bytes
Versions: 37
Compression:
Stored size: 478 Bytes
Contents
<% blob_data = component[:attributes][:blob] if blob_data && blob_data[:id] blob = ActiveStorage::Blob.find blob_data[:id] end 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
37 entries across 37 versions & 1 rubygems