Browse Source

Update report template to use same font size for all check names

Fixes: #347
pull/468/head
Pēteris Caune 4 years ago
parent
commit
efc44fd47c
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 4 additions and 12 deletions
  1. +2
    -6
      templates/emails/summary-downtimes-html.html
  2. +2
    -6
      templates/emails/summary-html.html

+ 2
- 6
templates/emails/summary-downtimes-html.html View File

@ -39,11 +39,7 @@
</td>
<td style="border-top: 1px solid #EDEFF2; padding: 16px 8px; font-family: Helvetica, Arial, sans-serif;">
{% if check.name %}
{% if check.name|length > 20 %}
<small>{{ check.name|mangle_link }}</small>
{% else %}
{{ check.name|mangle_link }}
{% endif %}
{{ check.name|mangle_link }}
{% else %}
<span style="color: #74787E; font-style: italic;">unnamed</span>
{% endif %}
@ -70,7 +66,7 @@
{% if not forloop.last %}
{% if count %}
<td style="border-top: 1px solid #EDEFF2; padding: 16px 8px; font-family: Helvetica, Arial, sans-serif;">
{{ count }} downtime{{ count|pluralize }},
{{ count }}&nbsp;downtime{{ count|pluralize }},
<br />
{{ seconds|hc_approx_duration }} total
</td>


+ 2
- 6
templates/emails/summary-html.html View File

@ -33,11 +33,7 @@
</td>
<td style="border-top: 1px solid #EDEFF2; padding: 16px 8px; font-family: Helvetica, Arial, sans-serif;">
{% if check.name %}
{% if check.name|length > 20 %}
<small>{{ check.name|mangle_link }}</small>
{% else %}
{{ check.name|mangle_link }}
{% endif %}
{{ check.name|mangle_link }}
{% else %}
<span style="color: #74787E; font-style: italic;">unnamed</span>
{% endif %}
@ -73,4 +69,4 @@
{% endfor %}
{% endfor %}
</table>
<br />
<br />

Loading…
Cancel
Save