From 3a21f4e4c45c3eb876e8ad578adefdf2f5196410 Mon Sep 17 00:00:00 2001 From: Michal Bryc Date: Wed, 13 Mar 2019 22:11:49 -0700 Subject: [PATCH] Add pager team templates --- templates/integrations/pagerteam_description.html | 5 +++++ templates/integrations/pagerteam_title.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 templates/integrations/pagerteam_description.html create mode 100644 templates/integrations/pagerteam_title.html diff --git a/templates/integrations/pagerteam_description.html b/templates/integrations/pagerteam_description.html new file mode 100644 index 00000000..22c9e800 --- /dev/null +++ b/templates/integrations/pagerteam_description.html @@ -0,0 +1,5 @@ +{% load humanize %} +{{ check.name_then_code }} is {{ check.status|upper }}. +{% if check.status == "down" %} +Last ping was {{ check.last_ping|naturaltime }}. +{% endif %} diff --git a/templates/integrations/pagerteam_title.html b/templates/integrations/pagerteam_title.html new file mode 100644 index 00000000..29274284 --- /dev/null +++ b/templates/integrations/pagerteam_title.html @@ -0,0 +1 @@ +{{ check.name_then_code }} is {{ check.status|upper }}