healthchecks/templates/front/last_ping_cell.html
Pēteris Caune 67560c96e1
Change icon CSS class prefix to work around Fanboy's filter list
Problem: if you use uBlock Origin, and enable the
"Fanboy's Social" filter list, Healthchecks does not show
Telegram or WhatsApp icons. This is because the filter list
contains "##.icon-telegram" and "##.icon-whatsapp" entries.

This commit changes the CSS class prefix to "ic-". So we're
now using icon classes like "ic-telegram" and "ic-whatsapp".

As a bonus, we save 2 bytes in HTML per displayed icon :-)
2021-02-03 10:44:35 +02:00

15 lines
429 B
HTML

{% load humanize hc_extras %}
{% if check.last_ping %}
{{ check.last_ping|naturaltime }}
{% if check.has_confirmation_link %}
<br /><span class="label label-confirmation">confirmation link</span>
{% elif check.clamped_last_duration %}
<br />
<span class="checks-subline-duration">
<span class="ic-timer"></span> {{ check.clamped_last_duration|hms }}
</span>
{% endif %}
{% else %}
Never
{% endif %}