Sha256: 92e258a78684e2b2a6f5c5bd6ac1b7a4941f8b0f46ac1f4987ea6aeaa3bfaf36

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

<%
blob = blob_from_data component[:attributes].dig(:image, :value)

alt = component[:attributes].dig(:alt, :value)&.to_s
caption = component[:attributes].dig(:caption, :value)&.to_s
%>
<figure class="<%= promethee_class_for component %>">
  <%= render 'promethee/show/image.srcset', blob: blob, alt: alt, caption: caption if blob %>
  <% unless caption.blank? %>
    <figcaption>
      <%= caption %>
    </figcaption>
  <% end %>
</figure>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
promethee-4.0.8 app/views/promethee/components/image/_show.html.erb
promethee-4.0.7 app/views/promethee/components/image/_show.html.erb
promethee-4.0.6 app/views/promethee/components/image/_show.html.erb
promethee-4.0.5 app/views/promethee/components/image/_show.html.erb
promethee-4.0.4 app/views/promethee/components/image/_show.html.erb
promethee-4.0.3 app/views/promethee/components/image/_show.html.erb
promethee-4.0.2 app/views/promethee/components/image/_show.html.erb
promethee-4.0.1 app/views/promethee/components/image/_show.html.erb
promethee-4.0.0 app/views/promethee/components/image/_show.html.erb