0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-08 06:30:05 +00:00

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.
This commit is contained in:
Pēteris Caune 2021-10-18 17:47:01 +03:00
parent dfc257ef22
commit d2c701fb77
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{% load humanize hc_extras %}
{% regroup checks by project as groups %}
{% spaceless %}
<table style="margin: 0; width: 100%; font-size: 16px;" cellpadding="0" cellspacing="0">
{% for group in groups %}
<tr>
@ -81,4 +82,5 @@
{% endfor %}
{% endfor %}
</table>
<br />
<br />
{% endspaceless %}

View file

@ -1,5 +1,6 @@
{% load humanize hc_extras %}
{% regroup checks by project as groups %}
{% spaceless %}
<table style="margin: 0; width: 100%; font-size: 16px;" cellpadding="0" cellspacing="0">
{% for group in groups %}
<tr>
@ -70,3 +71,4 @@
{% endfor %}
</table>
<br />
{% endspaceless %}