{# An alert email's HTML part: a = mail.alert_facts(), link = the alerts page or "". #} {% extends "_layout.html" %} {% from "_parts.html" import badge, button, fact with context %} {% block title %}{{ a.state }}: {{ a.rule }}{% endblock %} {% block body %} {{ badge(a.tone, a.state) }} {{ a.headline }} {{ fact("Rule", a.rule) }} {{ fact("Resource", a.resource) }} {{ fact("Reading", a.reading) }} {{ fact("Fires when", a.condition) }} {% call fact("When") %}{{ a.when }}{% if a.when_utc %}
{{ a.when_utc }}{% endif %}{% endcall %} {% if a.note %}{{ fact("Note", a.note) }}{% endif %}
{% if link %} {{ button(link, "View in Steward") }} {% else %} {% endif %} {% endblock %} {% block footer %} Steward sends this to everyone on its email list when an alert rule changes state. Who gets it is set in Settings › Notifications. {% endblock %}