{# Reusable, email-client-safe building blocks. Import WITH CONTEXT so the macros can read `brand` and `palette` from the render context: {% from 'email/partials/_macros.html' import status_pill, button, metrics, chip with context %} #} {# A severity pill: tinted lozenge + leading dot, all solid colors. #} {% macro status_pill(label=None) -%}
| ● {{ label or palette.label }} |
| {{ label }} |
| {{ row.label }} | {% if row.mono %}{{ chip(row.value) }}{% else %}{{ row.value }}{% endif %} |
|
{{ st.label }}{% if alert.type %} · {{ alert.type }}{% endif %}
{{ alert.message }}
{% if 'value' in alert or 'threshold' in alert %}
{% if 'value' in alert %}Current: {{ alert.value }}{% endif %}
{% if 'value' in alert and 'threshold' in alert %} · {% endif %}
{% if 'threshold' in alert %}Threshold: {{ alert.threshold }}{% endif %}
{% endif %}
|