Sha256: e8e0fe3d214f1c9bce3af73f2e85b68ab32cb8e9bdfccc7be99f7555d2f5aa7d

Contents?: true

Size: 809 Bytes

Versions: 16

Compression:

Stored size: 809 Bytes

Contents

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

searchable_surtitle = component[:attributes][:searchable_surtitle].to_s
searchable_title = component[:attributes][:searchable_title].to_s
searchable_subtitle = component[:attributes][:searchable_subtitle].to_s
%>
<div id="component-<%= image_data[:id] %>" class="<%= promethee_class_for(component) %>" style="background-image: url(<%= url_for(blob.variant(resize: 1920, quality: 95)) if blob %>)">
  <% if searchable_surtitle.present? %>
    <p><%= searchable_surtitle %></p>
  <% end %>

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

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

</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
promethee-1.6.43 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.42 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.41 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.40 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.39 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.38 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.37 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.36 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.35 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.34 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.33 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.32 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.31 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.30 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.29 app/views/promethee/components/cover/_show.html.erb
promethee-1.6.28 app/views/promethee/components/cover/_show.html.erb