Sha256: 6c732a4d4664bf62df9ce6c49b5218facaece922907dcfa4aa0a7e1671530b71

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 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 %>"
        id="<%= promethee_id_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

6 entries across 6 versions & 1 rubygems

Version Path
promethee-4.1.15 app/views/promethee/components/image/_show.html.erb
promethee-4.1.14 app/views/promethee/components/image/_show.html.erb
promethee-4.1.13 app/views/promethee/components/image/_show.html.erb
promethee-4.1.12 app/views/promethee/components/image/_show.html.erb
promethee-4.1.11 app/views/promethee/components/image/_show.html.erb
promethee-4.1.10 app/views/promethee/components/image/_show.html.erb