From 78aca869c56c9cd41911c0674e5c3d9a9df3c3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 20 Aug 2018 19:30:36 +0300 Subject: [PATCH] "Details..." instead of "Show Log..." in emails. --- hc/api/models.py | 4 ++-- templates/emails/alert-body-html.html | 13 +++++++++++++ templates/emails/summary-html.html | 4 ++-- templates/integrations/zendesk_description.html | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/hc/api/models.py b/hc/api/models.py index fcebe56b..9248bf7f 100644 --- a/hc/api/models.py +++ b/hc/api/models.py @@ -85,8 +85,8 @@ class Check(models.Model): def url(self): return settings.PING_ENDPOINT + str(self.code) - def log_url(self): - return settings.SITE_ROOT + reverse("hc-log", args=[self.code]) + def details_url(self): + return settings.SITE_ROOT + reverse("hc-details", args=[self.code]) def email(self): return "%s@%s" % (self.code, settings.PING_EMAIL_DOMAIN) diff --git a/templates/emails/alert-body-html.html b/templates/emails/alert-body-html.html index 7f719d98..3d8dde81 100644 --- a/templates/emails/alert-body-html.html +++ b/templates/emails/alert-body-html.html @@ -17,6 +17,19 @@ Here is a summary of your checks: Thanks,
The {% escaped_site_name %} Team + + {% endblock %} {% block unsub %} diff --git a/templates/emails/summary-html.html b/templates/emails/summary-html.html index a80a7248..68038aa9 100644 --- a/templates/emails/summary-html.html +++ b/templates/emails/summary-html.html @@ -59,11 +59,11 @@ {% if check.last_ping %} {{ check.last_ping|naturaltime }} -
- Show Log… {% else %} Never {% endif %} +
+ Details… {% endfor %} diff --git a/templates/integrations/zendesk_description.html b/templates/integrations/zendesk_description.html index 891740ef..7048304e 100644 --- a/templates/integrations/zendesk_description.html +++ b/templates/integrations/zendesk_description.html @@ -2,7 +2,7 @@ {% if check.status == "down" %} {{ check.name_then_code }} is down. Last ping was {{ check.last_ping|naturaltime }}. - Log: {{ check.log_url }} + Details: {{ check.details_url }} {% else %} {{ check.name_then_code }} received a ping and is now UP {% endif %}