lego/templates/header.html
skirtiadi 83db20ae1a Change the machine name of header image on donate pages.
As per code review feedback to remove confusion.

Issue #48275
2020-09-17 16:17:25 -07:00

37 lines
1.3 KiB
HTML

{% if this.color == 'primary' %}
<div class="container-fluid bg-primary">
{% else %}
<div class="container-fluid bg-dark">
{% endif %}
<div class="row flex-xl-nowrap {{ bag('alternatives', this.alt, 'order') }}">
{% if this.color == 'primary' %}
<div class="container bg-primary pt-5">
{% else %}
<div class="container bg-dark pt-5">
{% endif %}
<div class="row">
{% if this.html == 'donate-form.html' and this.header_image|length %}
<div class="col-12 content-center pt-5 donate-has-image">
<div class="row pb-5">
<h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2>
<img src="{{ this.header_image }}" class="donate-header-image" />
</div>
</div>
{% else %}
<div class="col-12 content-center pt-5">
<div class="row">
<h6 class="mx-auto text-white text-capitalize">{% block section %}{{ this.section }}{% endblock %}</h6>
</div>
<div class="row pb-5">
<h2 class="mx-auto display-3 text-white text-capitalize">{% block title %}{{ this.title }}{% endblock %}</h2>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if this.section_id == 'about' %}
{% include 'pagenav.html' %}
{% endif %}