{% extends 'pipeline/base.html' %} {% load i18n %} {% block page_title %}{% trans "Pipeline" %}{% endblock %} {% block header_nav_brand %}{% trans "Pipeline" %}{% endblock %} {% block pipeline_content %}
{# ── Manager toolbar ─────────────────────────────────────────────────── #} {% if request.user.is_superuser or perms.pipeline.manage_flows %}
{% trans "Manage Flows" %}
{% endif %} {# ── Assigned Flows ─────────────────────────────────────────────────── #} {% if assigned_items %}

{% trans "Your Assigned Flows" %}

{% for item in assigned_items %}
{{ item.flow.get_flow_type_display }} {% if item.assignment.status == 'completed' %} {% trans "Complete" %} {% elif item.assignment.status == 'in_progress' %} {% trans "In Progress" %} {% else %} {% trans "Assigned" %} {% endif %}
{{ item.flow.name }}
{% if item.flow.description %}

{{ item.flow.description|truncatewords:20 }}

{% endif %}
{% trans "Progress" %} {{ item.completed }}/{{ item.total }}
{% endfor %}
{% endif %} {# ── Available Flows ────────────────────────────────────────────────── #} {% if available_items %}

{% trans "Available Flows" %}

{% for item in available_items %}
{{ item.flow.get_flow_type_display }}
{{ item.flow.name }}
{% if item.flow.description %}

{{ item.flow.description|truncatewords:20 }}

{% endif %} {% blocktrans with count=item.total %}{{ count }} step{% endblocktrans %}{% if item.total != 1 %}s{% endif %}
{% endfor %}
{% endif %} {# ── Empty state ─────────────────────────────────────────────────────── #} {% if not assigned_items and not available_items %}
{% trans "No flows available" %}

{% trans "You have no flows assigned or available at this time. Check back later or contact your leadership." %}

{% endif %}
{# /container-fluid #} {% endblock pipeline_content %}