Include the description in email alerts. Fixes #247

This commit is contained in:
Pēteris Caune 2019-05-02 14:10:10 +03:00
parent 32ee6d4ca9
commit 44bac9dd12
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
3 changed files with 14 additions and 11 deletions

View File

@ -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

View File

@ -2,15 +2,19 @@
{% load hc_extras %}
{% block content %}
Hello,<br />
This is a notification sent by <a href="{% site_root %}">{% site_name %}</a>.
<br />
The check <strong>{{ check.name_then_code|mangle_link }}</strong>
The check <a href="{{ check.details_url }}">{{ check.name_then_code|mangle_link }}</a>
has gone <strong>{{ check.status|upper }}</strong>.
<br /><br />
<br>
Here is a summary of your checks:
{% if check.status == "down" and check.desc %}
Additional notes:<br><br>
<div style="padding: 10px 15px; background: #F2F4F6;">
{{ check.desc|linebreaksbr|urlize }}
</div>
{% endif %}
<br />
A summary of your checks:
<br />
{% include "emails/summary-html.html" %}

View File

@ -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' %}