forked from GithubBackups/healthchecks
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 :-)
15 lines
429 B
HTML
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 %} |