diff --git a/CHANGELOG.md b/CHANGELOG.md index 009ed8bd..6cee0c5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ All notable changes to this project will be documented in this file. - Add "Test!" function in the Integrations page (#207) - Rate limiting for the log in attempts - Password strength meter and length check in the "Set Password" form +- Show the Description section even if the description is missing. (#246) +- Include the description in email alerts. (#247) ## 1.6.0 - 2019-04-01 diff --git a/templates/emails/alert-body-html.html b/templates/emails/alert-body-html.html index 1066880c..d49563c8 100644 --- a/templates/emails/alert-body-html.html +++ b/templates/emails/alert-body-html.html @@ -2,15 +2,19 @@ {% load hc_extras %} {% block content %} -Hello,
- -This is a notification sent by {% site_name %}. -
-The check {{ check.name_then_code|mangle_link }} +The check {{ check.name_then_code|mangle_link }} has gone {{ check.status|upper }}. -

+
-Here is a summary of your checks: +{% if check.status == "down" and check.desc %} +Additional notes:

+
+ {{ check.desc|linebreaksbr|urlize }} +
+{% endif %} + +
+A summary of your checks:
{% include "emails/summary-html.html" %} diff --git a/templates/emails/alert-body-text.html b/templates/emails/alert-body-text.html index 16fe7a14..79491115 100644 --- a/templates/emails/alert-body-text.html +++ b/templates/emails/alert-body-text.html @@ -1,10 +1,7 @@ {% load hc_extras %} -Hello, - -This is a notification sent by {% site_name %}. The check "{{ check.name_then_code }}" has gone {{ check.status }}. -Here is a summary of all your checks: +A summary of all your checks: {% include 'emails/summary-text.html' %}