From b689c8aa4e804022d6c56b5b45f4f4938d29dd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 11 Mar 2020 16:38:40 +0200 Subject: [PATCH] Experimental Zulip integration. Fixes #202 --- templates/integrations/zulip_content.html | 9 +++++++++ templates/integrations/zulip_topic.html | 1 + 2 files changed, 10 insertions(+) create mode 100644 templates/integrations/zulip_content.html create mode 100644 templates/integrations/zulip_topic.html diff --git a/templates/integrations/zulip_content.html b/templates/integrations/zulip_content.html new file mode 100644 index 00000000..d87e78d2 --- /dev/null +++ b/templates/integrations/zulip_content.html @@ -0,0 +1,9 @@ +{% load hc_extras humanize %} + +[{{ check.name_then_code }}]({{ check.details_url }}) is **{{ check.status|upper }}**. {% if check.status == "down" %}Last ping was {{ check.last_ping|naturaltime }}.{% endif %} + +{% if check.desc %} +--- +**Description** +{{ check.desc}} +{% endif %} diff --git a/templates/integrations/zulip_topic.html b/templates/integrations/zulip_topic.html new file mode 100644 index 00000000..29274284 --- /dev/null +++ b/templates/integrations/zulip_topic.html @@ -0,0 +1 @@ +{{ check.name_then_code }} is {{ check.status|upper }}