{% load i18n %} {% with r=vetting_run %} {% if r.state == "running" and r.stalled %}
{% translate "The vetting run stopped" %}: {% blocktranslate with step=r.step %}no progress since the check '{{ step }}'.{% endblocktranslate %} {% translate "The worker probably stopped the task (a time limit or a restart). Click Re-Run Audit; if it stops at the same check again, tell Maddog which check." %}
{% elif r.state == "queued" or r.state == "running" %}
{% if r.state == "running" %} {% translate "Vetting is running" %} · {% blocktranslate with s=r.elapsed %}{{ s }} s{% endblocktranslate %} · {% translate "now" %}: {{ r.step }} · {% blocktranslate count n=r.steps|length %}{{ n }} check done{% plural %}{{ n }} checks done{% endblocktranslate %} {% translate "With many characters this takes several minutes (zKillboard allows about one request per second). This page refreshes by itself." %} {% elif r.stuck %} {% translate "Vetting is queued but has not started" %} ({% blocktranslate with m=r.age|floatformat:0 %}{{ m }} s ago{% endblocktranslate %}). {% translate "The Celery worker is not picking up the task: check that the workers run (and were restarted after the last update)." %} {% else %} {% translate "Vetting is queued" %} · {% translate "waiting for the Celery worker. This page refreshes by itself." %} {% endif %}
{% if not r.stuck %}{% endif %} {% elif r.state == "failed" %}
{% translate "The last vetting run failed" %}: {{ r.error }}
{% translate "Click Re-Run Audit to try again. If it fails again, send this message to Maddog; the server log has the details." %}
{% elif not vetting_report %}
{% translate "No vetting report yet" %} — {% translate "findings, score and audit details (wallet, assets, skills, contracts, mail, alts, kill patterns) are missing. Click Re-Run Audit to start the vetting." %}
{% endif %} {% if r.failed_steps %}
{% blocktranslate count n=r.failed_steps|length %}{{ n }} check failed in the last run{% plural %}{{ n }} checks failed in the last run{% endblocktranslate %}; {% translate "their findings and details are missing" %}:
{% endif %} {% if r.state == "done" and r.steps %}
{% blocktranslate with d=r.duration|default:0 n=r.steps|length %}Last vetting run: {{ n }} checks in {{ d }} s{% endblocktranslate %} {% for s in r.steps %}{% endfor %}
{{ s.name }}{% if s.skipped %}{% translate "switched off" %}{% else %}{{ s.seconds }} s{% endif %}{% if s.error %}{% translate "failed" %}{% elif not s.skipped %}ok{% endif %}
{% endif %} {% endwith %}