{% load i18n ui %}{% comment %} The stages of a job and where it is. Parameters: label (names the list), stages (list of {label, state}; state is "done", "current", "pending" or "failed"). {% endcomment %}
    {% for stage in stages %}
  1. {% if stage.state == "done" %}{% icon "check-circle" %}{% elif stage.state == "current" %}{% elif stage.state == "failed" %}{% icon "error" %}{% else %}{% icon "circle" %}{% endif %} {{ stage.label }} {% if stage.state == "done" %}{% translate "(done)" %}{% elif stage.state == "current" %}{% translate "(in progress)" %}{% elif stage.state == "failed" %}{% translate "(failed)" %}{% else %}{% translate "(not started)" %}{% endif %}
  2. {% endfor %}