{% load i18n %}{% comment %} A gridded run's calculation on its Map tab (#294, the GridRun board; gridded.stages.view): the run status line (the workspace's pattern: one line, a bar, Cancel; where it failed or was cancelled, with "Change the settings" and "Forget this run"), then the stages table (each stage, its state with a bar on the one running, and its time), on failure what to change with a link to it on Set-up and the run's log, and beside them what is being calculated. A new start of a finished run (#293, ``progress.again``) shows the line above the results it will replace, with its stages in a disclosure. Polled by htmx (outerHTML) while the run calculates (gridded:progress): the status line's sentence is announced through #announcer (data-announce), no more often than the poll and every 10 s at most, at once when the run stops. When the run finishes the poll's answer puts the map in this block's place (gridded/_run_finished.html). Context: run, progress (gridded.stages.RunProgress); bar_update (the poll's answer once the run stops: the bar too, gridded/_run_bar_update.html). {% endcomment %}{% if bar_update %}{% include "gridded/_run_bar_update.html" %}{% endif %}{% with p=progress status=progress.status %}

{{ status.head }}{% if status.rest %} {{ status.rest }}{% endif %}

{% if p.active %}{% endif %}
{% if status.links %} {% endif %}
{% if p.worker_missing %} {% translate "No calculation worker is running, so this 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 %} {% if p.again %}
{% translate "Stages of the new start" %}
{% include "gridded/_stages_table.html" %}
{% else %}

{% translate "Stages" %}

{% include "gridded/_stages_table.html" %}
{% endif %}
{% endwith %}