Sha256: ee490187321ae8635712d9c909ead148254a8f64bc815b0d7c4d3ba7f47a5e4d

Contents?: true

Size: 576 Bytes

Versions: 10

Compression:

Stored size: 576 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 %>">
  <div class="promethee__component__row">
    <div class="promethee__component__content">
      <%= render 'promethee/show/image.srcset', blob: blob, alt: alt, caption: caption if blob %>
      <% unless caption.blank? %>
        <figcaption>
          <%= caption %>
        </figcaption>
      <% end %>
    </div>
  </div>
</figure>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
promethee-4.1.9 app/views/promethee/components/image/_show.html.erb
promethee-4.1.8 app/views/promethee/components/image/_show.html.erb
promethee-4.1.7 app/views/promethee/components/image/_show.html.erb
promethee-4.1.6 app/views/promethee/components/image/_show.html.erb
promethee-4.1.5 app/views/promethee/components/image/_show.html.erb
promethee-4.1.4 app/views/promethee/components/image/_show.html.erb
promethee-4.1.3 app/views/promethee/components/image/_show.html.erb
promethee-4.1.2 app/views/promethee/components/image/_show.html.erb
promethee-4.1.1 app/views/promethee/components/image/_show.html.erb
promethee-4.1.0 app/views/promethee/components/image/_show.html.erb