Sha256: 8c881c2af8ecffa32f6dc13bd361151369336a8a32eee4b211f9dc26c67ca613

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

<%
blob_id = component[:attributes][:blob][:id]
blob = ActiveStorage::Blob.find blob_id if blob_id
surtitle = component[:attributes][:surtitle].to_s
title = component[:attributes][:title].to_s
subtitle = component[:attributes][:subtitle].to_s
%>
<div class="<%= promethee_class_for(component) %>" style="background-image: url(<%= url_for(blob.variant(resize: '1920')) if blob %>)">
  <hgroup>
    <% unless surtitle.blank? %><h2><%= surtitle %></h2><% end %>
    <% unless title.blank? %><h1><%= title %></h1><% end %>
    <% unless subtitle.blank? %><h2><%= subtitle %></h2><% end %>
  </hgroup>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

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