{% from "partials/references.html" import card_heading, issue_state with context %}{% set campaign = card %}{% set overview = card.child_overview %}
{% include "partials/agent-work-card.html" %}
{#- The block stays while the sub-issues are unknown or none, so a refresh keeps it open. #}
{{ overview.summary }}
{%- with id_prefix = campaign.identifier ~ "-" %}
{%- for child in overview.children %}
{%- if child.assignment is not none %}
{% with card = child.assignment %}{% include "partials/agent-work-card.html" %}{% endwith %}
{%- endif %}
{%- for request in child.requests %}
{% include "partials/request-card.html" %}
{%- endfor %}
{%- if child.assignment is none and not child.requests %}
{% call card_heading(child.issue, child.title) -%}
{{ issue_state(child.issue_state, ()) }}
{%- endcall %}
{%- endif %}
{%- endfor %}
{%- endwith %}