{% load i18n ui %}{% comment %} The indices job's progress, polled by htmx while it is queued or running (stations:results_progress, outerHTML swap). When the job succeeds the view answers with HX-Redirect to the dashboard (or the index the user came from), so the fragment never shows a finished run. Built from the progress and stages components. Parameters: job, analysis, phases, index, and jobs.views.progress_context. {% endcomment %}
{% if job.total %}{% blocktranslate with step=job.step total=job.total %}Step {{ step }} of {{ total }}.{% endblocktranslate %}{% else %}{{ job.get_status_display }}{% endif %} {% if elapsed %}{% blocktranslate %}Time so far: {{ elapsed }}.{% endblocktranslate %}{% endif %} {% if remaining %}{% blocktranslate %}About {{ remaining }} left.{% endblocktranslate %}{% endif %}
{% translate "Cancelling…" %}
{% endif %} {% if job.can_cancel %} {% endif %} {% endif %} {% if job.status == "failed" %} {% translate "Stages of the calculation" as stages_label %} {% include "components/stages.html" with label=stages_label stages=phases %}{{ job.error }}