Sha256: e374931386225dce7d16015850a907aae19777527103f24eefa4c1c5ff894193

Contents?: true

Size: 886 Bytes

Versions: 10

Compression:

Stored size: 886 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 %>)">
    <div class="container">
      <div class="promethee__component__row">
        <div class="promethee__component__content">
          <% if surtitle.present? %>
            <p><%= surtitle %></p>
          <% end %>
          <% if title.present? %>
            <h1><%= title %></h1>
          <% end %>
          <% if subtitle.present? %>
            <p><%= subtitle %></p>
          <% end %>
        </div>
      </div>
    </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

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