Sha256: 20a55cb99bb16307f85be19dd2bb9792d628dde84de4f71bfe591129445c5d19

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 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? %><h2><%= surtitle %></h2><% end %>
    <% unless title.blank? %><h1><%= title %></h1><% end %>
    <% unless subtitle.blank? %><h2><%= subtitle %></h2><% end %>
  </hgroup>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
promethee-1.4.5 app/views/promethee/components/cover/_show.html.erb
promethee-1.4.4 app/views/promethee/components/cover/_show.html.erb
promethee-1.4.3 app/views/promethee/components/cover/_show.html.erb
promethee-1.4.2 app/views/promethee/components/cover/_show.html.erb
promethee-1.4.1 app/views/promethee/components/cover/_show.html.erb
promethee-1.4.0 app/views/promethee/components/cover/_show.html.erb
promethee-1.3.26 app/views/promethee/components/cover/_show.html.erb
promethee-1.3.25 app/views/promethee/components/cover/_show.html.erb