Sha256: e4c16ebef0ee6c600a1efb50b55bab79485fbc2b66e148e9e6cf68ea6961e148

Contents?: true

Size: 521 Bytes

Versions: 5

Compression:

Stored size: 521 Bytes

Contents

<%
src = component[:attributes][:src].to_s
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(<%= src %>)">
  <hgroup>
    <% unless surtitle.blank? %><p class="surtitle"><%= surtitle %></p><% end %>
    <% unless title.blank? %><h1><%= title %></h1><% end %>
    <% unless subtitle.blank? %><h2><%= subtitle %></h2><% end %>
  </hgroup>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
promethee-1.3.23 app/views/promethee/components/cover/_show.html.erb
promethee-1.3.22 app/views/promethee/components/cover/_show.html.erb
promethee-1.3.21 app/views/promethee/components/cover/_show.html.erb
promethee-1.3.20 app/views/promethee/components/cover/_show.html.erb
promethee-1.3.19 app/views/promethee/components/cover/_show.html.erb