{% load i18n ui %}{% comment %} The checks' progress (#77), polled by htmx while the "qc" job is queued or running; the progress view answers HX-Refresh once it has finished, so the page shows the results. Context from views.qc_context (job, stage_label, elapsed, delay, worker_missing). {% endcomment %}
{% translate "Running the quality checks…" %} {% if job.total %}{% blocktranslate with percent=job.percent %}{{ percent }}%{% endblocktranslate %}{% endif %}
{% blocktranslate with percent=job.percent %}{{ percent }}%{% endblocktranslate %}

{% if stage_label %}{% blocktranslate with stage=stage_label %}{{ stage }}.{% endblocktranslate %}{% endif %} {% if elapsed %}{% blocktranslate %}Time so far: {{ elapsed }}.{% endblocktranslate %}{% endif %} {% translate "The checks usually take a few seconds; the results appear here." %}

{% if worker_missing %} {% translate "No calculation worker is running, so the checks cannot start yet. If you run Climpact yourself, restart it with the climpact-web command." as worker_message %} {% include "components/alert.html" with kind="warning" message=worker_message title="" %} {% endif %}