{% load i18n %}{% comment %} The stages of a gridded run (#294, gridded/_stages.html): a framed data table, one row a stage (its mark, its name and one line on what it does, State with a bar on the running one, Time so far), then on failure what to change. The mark repeats the State column's words, so it is hidden from screen readers. Its scroll region is "Stages table", a name of its own beside the section's (axe's landmark-unique). Parameters: run, progress. {% endcomment %}
{% for row in progress.rows %} {% endfor %}
{% translate "Stage" %} {% translate "State" %} {% translate "Time" %}
{{ row.title }}{{ row.text }} {{ row.label }}{% if row.state == "running" and row.percent is not None %}{% endif %} {{ row.time|default:"–" }}
{% if progress.failure %}{% with f=progress.failure %}

{{ f.error }}{% if f.detail %} {{ f.detail }}{% endif %}

{{ f.fix }}{% if f.kept %} {{ f.kept }}{% endif %}

{% if f.href %}{% include "components/button.html" with label=f.button href=f.href size="sm" %}{% endif %}{% translate "The run’s log" as log_label %}{% include "components/button.html" with label=log_label href=f.log variant="secondary" size="sm" %}

{% endwith %}{% endif %}