Sha256: 847b3e02e3605e354b92afb0bcc142ce28a3bf94421586d9674f8ccbc8b9d4e3

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

<%
image_data = component[:attributes][:image]
if image_data && image_data[:id]
  blob = ActiveStorage::Blob.find image_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

4 entries across 4 versions & 1 rubygems

Version Path
promethee-1.6.14 app/views/promethee/components/image/_show.html.erb
promethee-1.6.13 app/views/promethee/components/image/_show.html.erb
promethee-1.6.12 app/views/promethee/components/image/_show.html.erb
promethee-1.6.11 app/views/promethee/components/image/_show.html.erb