Sha256: 5b9b42edd789afd76722e941c84b9a4acfad122d1967e970df45d882b63ffbe8

Contents?: true

Size: 652 Bytes

Versions: 9

Compression:

Stored size: 652 Bytes

Contents

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

surtitle = component[:attributes].dig(:surtitle, :value)&.to_s
title = component[:attributes].dig(:title, :value)&.to_s
subtitle = component[:attributes].dig(:subtitle, :value)&.to_s
%>
<div id="component-<%= component[:id] %>" class="<%= promethee_class_for(component) %>" style="background-image: url(<%= url_for(blob.variant(resize: '1920>', quality: 95)) 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

9 entries across 9 versions & 1 rubygems

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