From 0da7b12f55f126a4a3e181529a454fceca135732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 14 May 2019 16:01:22 +0300 Subject: [PATCH] Show description in text emails only for the "going down" notifications, and only if the description is not empty. --- templates/emails/alert-body-text.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/emails/alert-body-text.html b/templates/emails/alert-body-text.html index 6e28ba73..7b203aad 100644 --- a/templates/emails/alert-body-text.html +++ b/templates/emails/alert-body-text.html @@ -1,13 +1,12 @@ {% load hc_extras %} The check "{{ check.name_then_code }}" has gone {{ check.status }}. - +{% if check.status == "down" and check.desc %} Additional notes: {{ check.desc }} - +{% endif %} More information: {{ check.details_url }} - -- Regards, {% site_name %}