0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-07 22:25:35 +00:00

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

Fixes: 
This commit is contained in:
Pēteris Caune 2020-12-29 15:14:37 +02:00
parent ca3d1d3a3b
commit efc44fd47c
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
2 changed files with 4 additions and 12 deletions

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>

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 />