{{ label(stage) }}{{ tasks|length }}

{#- All the project's cards on test, whatever the filter: the order is the project's. #} {% if stage == "test" and merge_order and merge_order.shown %}
Merge order
    {% for e in merge_order.entries %}
  1. {{ e.task.key }} {{ e.task.title }} {%- if e.repos %} · repos {{ e.repos|join(", ") }}{% endif %} {%- if e.prs %} · PR {{ e.prs|join(", ") }}{% endif %} {%- for b in e.waits %} · waits for {{ b.key }} · {{ b.stage }}{% endfor %}
  2. {% endfor %}
{% if merge_order.warnings %} {% endif %}
{% endif %}
{% for t in tasks %} {% with slug = project.slug %}{% include "_card.html" %}{% endwith %} {% else %}

Nothing here

{% endfor %}
{% if stage == "done" %} {#- Archive all shown: the cards on screen (the filter's), not those already in the archive. #} {%- set ns = namespace(n=0) %}{% for t in tasks %}{% if not task_archived(t) %}{% set ns.n = ns.n + 1 %}{% endif %}{% endfor %} {% if ns.n %}

{% endif %} {% if done_more %}

{{ done_more }} more not shown; search to find them.

{% endif %} {% if hidden_archived %}

{{ hidden_archived }} in the archive (closed more than {{ done_window_days }} days ago or archived by hand) · Show archived

{% endif %} {% endif %}