2019-08-18 12:37:11 -07:00
|
|
|
{% macro title(branding, primary_asn, size_title="h1", size_subtitle="h4", direction="none") -%}
|
2019-08-23 15:56:05 -07:00
|
|
|
|
2019-07-29 22:13:11 -07:00
|
|
|
{% if branding.text.title_mode == 'text_only' %}
|
2019-08-23 15:56:05 -07:00
|
|
|
<div class="col p-0">
|
|
|
|
<p class="{{ size_title }}">{{ branding.text.title }}</p>
|
|
|
|
<p class="{{ size_subtitle }}">{{ branding.text.subtitle.format(primary_asn=primary_asn) }}</p>
|
|
|
|
</div>
|
|
|
|
|
2019-08-16 23:59:20 -07:00
|
|
|
{% elif branding.text.title_mode == 'all' %}
|
|
|
|
<img src="{{ branding.logo.path }}" style="width: {{ branding.logo.width }}px;">
|
2019-08-23 15:56:05 -07:00
|
|
|
<p class="{{ size_title }}">{{ branding.text.title }}<p>
|
|
|
|
<p class="{{ size_subtitle }}">{{ branding.text.subtitle.format(primary_asn=primary_asn) }}</p>
|
|
|
|
|
2019-08-16 23:59:20 -07:00
|
|
|
{% elif branding.text.title_mode == 'logo_title' %}
|
2019-08-23 15:56:05 -07:00
|
|
|
<div class="float-{{ direction }} mw-sm-100 mw-md-75 mw-lg-50 mw-xl-50">
|
2019-10-09 03:10:52 -07:00
|
|
|
<img class="img-fluid hg-logo" src="{{ branding.logo.path }}">
|
2019-08-18 12:37:11 -07:00
|
|
|
</div>
|
2019-08-23 15:56:05 -07:00
|
|
|
<p clas="{{ size_title }}">{{ branding.text.title }}</p>
|
|
|
|
|
2019-08-16 23:59:20 -07:00
|
|
|
{% elif branding.text.title_mode == 'logo_only' %}
|
2019-08-23 15:56:05 -07:00
|
|
|
<div class="float-{{ direction }} mw-sm-100 mw-md-75 mw-lg-50 mw-xl-50">
|
2019-10-09 03:10:52 -07:00
|
|
|
<img class="img-fluid hg-logo" src="{{ branding.logo.path }}">
|
2019-08-16 23:59:20 -07:00
|
|
|
</div>
|
2019-07-29 22:13:11 -07:00
|
|
|
{% endif %}
|
2019-08-23 15:56:05 -07:00
|
|
|
|
2019-07-29 22:13:11 -07:00
|
|
|
{%- endmacro %}
|