{#- The session card, shared by the board's task dialog and the task page (design 0025). An open card shows, top to bottom: the state line; what waits for the owner (open approvals and questions, unread agent replies); the next step and what holds the card; the plan; the last report; deploy notes; description and progress; then folded secondary blocks. A done or archived card leads with its last report and code, the rest folded. A block with nothing in it is left out. Expects: detail, optional error. Refetched on live events, so it holds no form state of its own: the comment box lives outside it (_comment_form.html). -#} {%- set t = detail.task -%} {%- set is_done = t.stage.value == "done" %} {%- set is_live = t.stage.value == "live" %} {%- set closed = is_done or t.archived_at %} {#- Folds whose default differs between an open and a closed card keep the owner's choice apart. #} {%- set fp = "done-" if closed else "" %} {%- set d = detail.document %} {%- set questions = detail.questions %} {%- set approvals = detail.approvals %} {%- set replies = detail.unread_replies %}
{{ error }}
{% endif %} {% include "_state_line.html" %} {%- set approvals_block %}Mark them read under Comments; a comment you send marks them read too.
{{ "Accepted" if plan.status == "accepted" else "Draft" }}{% if plan.deviations %} · {{ plan.deviations }} deviation{{ "s" if plan.deviations > 1 else "" }}{% endif %}
{% if t.deploy_done %}done{% else %}not done yet{% endif %}
{{ t.branch }}{{ t.doc_path }}{% if d and d.ref.broken %} {{ d.ref.broken }}{% endif %}{{ sec.link.doc }}#{{ sec.link.anchor }}{% endif %}{% if sec.title %} {{ sec.title }}{% endif %}{% if sec.ref.broken %} {{ sec.ref.broken }}{% endif %}{{ t.session_external_id }}
{% endif %} {% if t.session_activity_at %}{% if t.session_status %}{{ t.session_status }} {% endif %}last activity: {{ t.session_activity or "—" }} ·
{% endif %} {% else %}No session is bound to this task.
{% endif %} {% if detail.bind_choices %}No section #{{ d.link.anchor }}; the whole document follows.
No text here.
{% endif %}