Show description in text emails only for the "going down" notifications, and only if the description is not empty.

This commit is contained in:
Pēteris Caune 2019-05-14 16:01:22 +03:00
parent 14f504bd22
commit 0da7b12f55
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -1,13 +1,12 @@
{% load hc_extras %} {% load hc_extras %}
The check "{{ check.name_then_code }}" has gone {{ check.status }}. The check "{{ check.name_then_code }}" has gone {{ check.status }}.
{% if check.status == "down" and check.desc %}
Additional notes: Additional notes:
{{ check.desc }} {{ check.desc }}
{% endif %}
More information: More information:
{{ check.details_url }} {{ check.details_url }}
-- --
Regards, Regards,
{% site_name %} {% site_name %}