houdini/app/views/components/fundraising_pages/_header.html.erb

25 lines
968 B
Text
Raw Normal View History

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<!-- partial start: fundaising_pages/_header -->
<%# requirements: image_url, is_editor, header_content_partial %>
<% hide_title = hide_title ? true : false %>
<% css_style = is_editor ? "style='margin-top: 0'" : '' %>
<header class="container fundraisingHeader--plain" <%= css_style.html_safe %> id='js-fundraisingHeader'>
<% if banner_image_url %>
2018-11-07 20:48:11 +00:00
<div class='campaign-banner u-margin'>
<img src='<%= banner_image_url %>'>
</div>
<% end %>
<div class='fundraisingHeader--image-container' id='js-fundraisingHeader-image' style='display: none;'>
<img class='fundraisingHeader--image-aspectRatio' src="<%= asset_path 'graphics/10x6.jpg' %>">
</div>
<% unless hide_title %>
<section class='fundraisingHeader-content'>
<%= render header_content_partial %>
</section>
<% end %>
</header>
2018-11-07 20:48:11 +00:00
<!-- partial end: fundraising_pages/_header -->