{% extends 'pipeline/base.html' %} {% load i18n %} {% block page_title %}{{ page_title }}{% endblock %} {% block header_nav_brand %}{% trans "Pipeline" %}{% endblock %} {% block pipeline_content %}

{% trans "Assignments" %}

{{ flow.name }}

{# ── Summary ─────────────────────────────────────────────────────────── #}
{% trans "Not started" %}
{{ total_assigned }}
{% trans "In progress" %}
{{ total_in_progress }}
{% trans "Completed" %}
{{ total_completed }}
{# ── Active/All toggle ────────────────────────────────────────────────── #}
{% if show_completed %} {% trans "All Assignments" %} {% else %} {% trans "Active Assignments" %} {% endif %}
{% if show_completed %} {% trans "Show Active Only" %} {% else %} {% trans "Show All (incl. Completed)" %} {% endif %}
{# ── Step legend ──────────────────────────────────────────────────────── #} {% if steps %}
{% trans "Steps:" %} {% for step in steps %} {{ forloop.counter }} {{ step.name }} {% if step.optional %}({% trans "optional" %}){% endif %} {% endfor %}
{% endif %} {# ── Assignments table ────────────────────────────────────────────────── #} {% if rows %}
{% for step in steps %} {% endfor %} {% for row in rows %} {% with a=row.assignment %} {# User #} {# Status badge #} {# Progress bar #} {# Assigned at #} {# Per-step icons #} {% for state in row.step_states %} {% endfor %} {% endwith %} {% endfor %}
{% trans "User" %} {% trans "Status" %} {% trans "Progress" %} {% trans "Assigned" %} {{ forloop.counter }}
{{ a.user.username }} {% with main=a.user.profile.main_character %} {% if main %} {{ main.character_name }} {% endif %} {% endwith %} {% if a.status == 'assigned' %} {% trans "Not started" %} {% elif a.status == 'in_progress' %} {% trans "In progress" %} {% else %} {% trans "Completed" %} {% endif %}
{{ row.completed_required }}/{{ row.total_required }}
{{ a.assigned_at|timesince }} {% trans "ago" %} {% if state.complete %} {% else %} {% if state.step.optional %} {% else %} {% endif %} {% endif %}
{% else %}
{% if show_completed %}

{% trans "No assignments for this flow yet." %}

{% else %}

{% trans "No active assignments right now." %}

{% trans "Show Completed Assignments" %} {% endif %}
{% endif %}
{% endblock %}