Add colored emojis to telegram messages

so you can see whether it's up or down at first glance
This commit is contained in:
Laura Hausmann 2021-03-04 01:10:34 +01:00 committed by Pēteris Caune
parent 1d62176f34
commit 448721e916

View File

@ -1,6 +1,6 @@
{% load humanize %}
{% if check.status == "down" %}
The check "{{ check.name_then_code }}" is <b>DOWN</b>. Last ping was {{ check.last_ping|naturaltime }}.
🔴 The check "{{ check.name_then_code }}" is <b>DOWN</b>. Last ping was {{ check.last_ping|naturaltime }}.
{% else %}
The check "{{ check.name_then_code }}" is now <b>UP</b>.
🟢 The check "{{ check.name_then_code }}" is now <b>UP</b>.
{% endif %}