274:570f7fb00b52
Anton Shestakov <av6@dwimlabs.net>, 2017-07-30
viewer: move humanizeTimestamps() to a separate .js file

previous change 24:16c6f6907c16

templates/ui/badges.html

Permissions: -rw-r--r--

Other formats: Feeds:
24
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% if not check.success %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<span class="uk-badge uk-badge-unknown uk-text-large" title="checking failed">?</span>
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% elif check.errors or check.warnings %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% if check.errors %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<span class="uk-badge uk-badge-danger uk-text-large"
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
title="{{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }}">
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{{ check.errors }}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</span>
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% end %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% if check.warnings %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<span class="uk-badge uk-badge-warning uk-text-large"
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
title="{{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }}">
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{{ check.warnings }}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</span>
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% end %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% else %}
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<span class="uk-badge uk-badge-success uk-text-large" title="no lint found">OK</span>
24:16c6f6907c16 viewer: show badges for checks (using a UI module)
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% end %}