Sha256: 418809907e025ca9fd89bf28481441687eb4bfdb4cfb3e89ecf014676caed5bb

Contents?: true

Size: 666 Bytes

Versions: 2

Compression:

Stored size: 666 Bytes

Contents

<%
image_data = component[:attributes][:image]
if image_data && image_data[:id]
  blob = ActiveStorage::Blob.find image_data[:id]
end

surtitle = component[:attributes][:surtitle].to_s
title = component[:attributes][:title].to_s
subtitle = component[:attributes][:subtitle].to_s
%>
<div id="component-<%= image_data[:id] %>" class="<%= promethee_class_for(component) %>" style="background-image: url(<%= url_for(blob.variant(resize: '1920')) if blob %>)">
  <% if surtitle.present? %>
    <p><%= surtitle %></p>
  <% end %>

  <% if title.present? %>
    <h1><%= title %></h1>
  <% end %>

  <% if subtitle.present? %>
    <p><%= subtitle %></p>
  <% end %>

</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
promethee-1.6.14 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.13 app/views/promethee/components/cover/_show.html.erb