{#- Read-only task details, shared by the board's task dialog and the task page. Expects: detail, optional error. Refetched on live events, so it holds no form state of its own. -#} {%- set t = detail.task -%}

{{ t.title }}

{% if error %}{% endif %}
Stage
{{ label(t.stage.value) }}{% if t.stage_note %} {{ t.stage_note }}{% endif %}
{%- set is_done = t.stage.value == "done" %} {% if t.waiting_on %}
Waiting on
{% if is_done %}{{ t.waiting_on }}{% else %}{{ t.waiting_on }}{% endif %}
{% endif %} {%- set stale = t.next_step_stale and not is_done %} {% if t.next_step %}
Next step
{{ t.next_step }}{% if stale %} stale{% endif %}{% endif %} {% if t.branch %}
Branch
{{ t.branch }}
{% endif %} {% if t.tracker_ref or t.tracker_name or t.tracker_url or t.tracker_logged or (require_tracker_log and is_done) %}
Tracker
{% include "_tracker.html" %} {%- if t.tracker_url and not t.tracker_ref %}{% set href = t.tracker_url|http_url %}{% if href %} {{ t.tracker_name or href }}{% endif %}{% endif %} {%- if t.tracker_ref and not t.tracker_logged and not is_done %} work log not entered yet{% endif %}
{% endif %} {% if t.doc_path %}
Document
{{ t.doc_path }}
{% endif %}
Updated
· v{{ t.version }}
{% if detail.tracker_history %}

Tracker history

    {% for e in detail.tracker_history %} {%- set href = e.tracker_url|http_url %} {%- set text = (e.tracker_name ~ " " if e.tracker_name else "") ~ e.tracker_ref %}
  1. {% if href %}{{ text }}{% else %}{{ text }}{% endif %} — {%- if e.logged_at %} logged {% endif %} {%- if e.logged_at and e.unlogged_at %} ·{% endif %} {%- if e.unlogged_at %} unlogged {% endif %} {%- if not e.logged_at and not e.unlogged_at %} not logged{% endif %}
  2. {% endfor %}
{% endif %}

Session

{% if t.session_name %}
{% with name = t.session_name, status = t.session_status, link = t.session_link %}{% include "_session.html" %}{% endwith %}
{% if t.session_external_id %}

{{ 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.bindings %}

History

    {% for b in detail.bindings %}
  1. {{ b.session_name }} {% if b.session_external_id and b.session_external_id != b.session_name %}{{ b.session_external_id }}{% endif %} bound by {{ b.bound_by }} {% if b.unbound_at %}· until {% else %}· current{% endif %}
  2. {% endfor %}
{% endif %}

Description

{% if t.description %}
{{ t.description|markdown }}
{% else %}

No description yet.

{% endif %}

Done so far

{% if t.progress %}
{{ t.progress|markdown }}
{% else %}

No progress summary yet.

{% endif %}

Last report

{% for r in detail.reports %} {% if loop.index == 2 %}

Earlier reports

{% endif %}
{% with state = r.state, size = r.size %}{% include "_report_badges.html" %}{% endwith %} {{ r.author }} ·
{{ r.body_md|markdown }}
{% else %}

No reports yet.

{% endfor %}
{% if detail.live_actions %}

Actions on live

    {% for e in detail.live_actions %}{% include "_live_action.html" %}{% endfor %}
{% endif %} {% if detail.decisions %}

Decisions

{% endif %}