From d2c701fb772cff879b21ee04298b53c9fde17db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 18 Oct 2021 17:47:01 +0300 Subject: [PATCH] Add {% spaceless %} tags to reduce uncompressed email size If the email body is above a certain size, Gmail trims it and displays "[Message clipped] View entire message" at the end. The spaceless tag is a quick fix to reduce HTML size a bit and allow more table rows to fit before clipping. --- templates/emails/summary-downtimes-html.html | 4 +++- templates/emails/summary-html.html | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/emails/summary-downtimes-html.html b/templates/emails/summary-downtimes-html.html index b513d21e..f20f5ef7 100644 --- a/templates/emails/summary-downtimes-html.html +++ b/templates/emails/summary-downtimes-html.html @@ -1,5 +1,6 @@ {% load humanize hc_extras %} {% regroup checks by project as groups %} +{% spaceless %} {% for group in groups %} @@ -81,4 +82,5 @@ {% endfor %} {% endfor %}
-
\ No newline at end of file +
+{% endspaceless %} diff --git a/templates/emails/summary-html.html b/templates/emails/summary-html.html index 396599e6..645d5243 100644 --- a/templates/emails/summary-html.html +++ b/templates/emails/summary-html.html @@ -1,5 +1,6 @@ {% load humanize hc_extras %} {% regroup checks by project as groups %} +{% spaceless %} {% for group in groups %} @@ -70,3 +71,4 @@ {% endfor %}

+{% endspaceless %} \ No newline at end of file