{% load i18n %} {% comment %} One flow on the Pipeline index. Takes `item` ({flow, assignment, total, completed, pct}). {% endcomment %} {% with status=item.assignment.status %}
{{ item.flow.get_flow_type_display }} {% if status == "completed" %} {% trans "Complete" %} {% elif status == "in_progress" %} {% trans "In progress" %} {% elif status == "assigned" %} {% trans "Not started" %} {% endif %}

{{ item.flow.name }}

{% if item.flow.description %}

{{ item.flow.description }}

{% endif %}
{% if item.assignment %}
{% blocktrans with done=item.completed count total=item.total %}{{ done }} of {{ total }} step{% plural %}{{ done }} of {{ total }} steps{% endblocktrans %} {{ item.pct }}%
{% else %}
{% blocktrans count total=item.total %}{{ total }} step{% plural %}{{ total }} steps{% endblocktrans %}
{% endif %}
{% endwith %}