{#- Branded email, in the sender's brand (colours, font, logo, footer).
Tables + inline styles so it renders in Outlook and Gmail; the
{%- if preheader %}{{ preheader }}
{% endif %}
{#- header: logo (+ what this is, on the right) #}
{% set head_bg = '#FFFFFF' if c.light_header else c.band %}
{% if logo %}
{%- else %}{{ brand.name }}{% endif %} |
{% if hero and hero.kicker %}{{ hero.kicker }} | {% endif %}
|
{#- headline figure #}
{% if hero %}
|
{% if hero.eyebrow %} {{ hero.eyebrow }} {% endif %}
{{ hero.headline }}
{% if hero.sub %}{{ hero.sub }} {% endif %}
|
{% endif %}
{#- message #}
|
{% if greeting %} {{ greeting }} {% endif %}
{% for s in sections %}
{% if s.heading %}{{ s.heading }} {% endif %}
{{ s.html }}
{% endfor %}
{% if cta %}
{% endif %}
{#- age bar #}
{% if bands %}
{{ label("By age") }}
{%- for b in bands %}| | {% endfor -%}
{%- for b in bands %}|
{{ b.label }}
{{ b.text }} | {% endfor -%}
{% endif %}
{#- largest balances #}
{% if top %}
{{ label(top.title) }}
{% for r in top.rows %}
| {{ r.name }} |
|
{{ r.text }} |
{% endfor %}
{% endif %}
{#- the figures #}
{% if table %}
{{ label(table.title) }}
{% for col in table.columns %}| {{ col.name }} | {% endfor %}
{% for row in table.rows %}
{% for cell in row %}
{%- set edge = ('padding-left:0;' if loop.first else '') ~ ('padding-right:0;' if loop.last else '') -%}
{%- if cell.kind == 'days' -%}
{%- set v = cell.value if cell.value is number else 0 -%}
{%- set pill = (c.ramp[3], c.on_ramp_dark) if v > 90 else ((c.soft, c.on_soft) if v > 60 else (c.canvas, c.muted)) -%}
| {{ cell.text }} |
{%- else -%}
{{ cell.text }} |
{%- endif -%}
{% endfor %}
{% endfor %}
{% if table.totals %}
{% for cell in table.totals %}| {{ cell.text }} | {% endfor %}
{% endif %}
{% if table.shown < table.total %}Showing {{ table.shown }} of {{ table.total }}.{% if attachments %} The full list is in the attached {{ 'PDF' if attachments[0].lower().endswith('.pdf') else 'file' }}.{% endif %} {% endif %}
{% endif %}
{#- attachments #}
{% if attachments %}
{% for a in attachments %}
| {{ badge(a) }} |
{{ a }} Attached |
|
|
{% endfor %}
{% endif %}
|
{#- sign-off and signature #}
|
{% if copy.sign_off %} {{ copy.sign_off }} {% endif %}
{% if signature %}{{ signature }}
{% else %}
|
{{ sender.name }}
{% if sender.title %}{{ sender.title }} ยท {% endif %}{{ brand.name }}
|
{% endif %}
|
{#- footer #}
|
|
|