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

Version Path
promethee-1.6.10 app/views/promethee/components/image/_show.html.erb
promethee-1.6.8 app/views/promethee/components/image/_show.html.erb
promethee-1.6.7 app/views/promethee/components/image/_show.html.erb
promethee-1.6.6 app/views/promethee/components/image/_show.html.erb
promethee-1.6.5 app/views/promethee/components/image/_show.html.erb
promethee-1.6.4 app/views/promethee/components/image/_show.html.erb
promethee-1.6.3 app/views/promethee/components/image/_show.html.erb
promethee-1.6.2 app/views/promethee/components/image/_show.html.erb
promethee-1.6.1 app/views/promethee/components/image/_show.html.erb
promethee-1.6.0 app/views/promethee/components/image/_show.html.erb
promethee-1.5.4 app/views/promethee/components/image/_show.html.erb
promethee-1.5.3 app/views/promethee/components/image/_show.html.erb
promethee-1.5.2 app/views/promethee/components/image/_show.html.erb
promethee-1.5.0 app/views/promethee/components/image/_show.html.erb
promethee-1.4.29 app/views/promethee/components/image/_show.html.erb
promethee-1.4.28 app/views/promethee/components/image/_show.html.erb
promethee-1.4.27 app/views/promethee/components/image/_show.html.erb
promethee-1.4.26 app/views/promethee/components/image/_show.html.erb
promethee-1.4.25 app/views/promethee/components/image/_show.html.erb
promethee-1.4.24 app/views/promethee/components/image/_show.html.erb