{#- The card shows only what is needed at a glance; the task dialog has everything else. -#}
{{ t.key }} {% if t.tracker_ref or t.tracker_logged or (require_tracker_log and t.stage.value == "done") %}{% include "_tracker.html" %}{% endif %} {% if t.session_link %} {%- set status_text = (" (" ~ t.session_status ~ ")") if t.session_status else "" %} {% if t.session_status %}{% endif %} {% endif %}

{{ t.title }}

{#- A done task waits on nobody: its "waiting on" and "next step" are history, not shown here. #} {%- set is_open = t.stage.value != "done" %} {% if (t.waiting_on and is_open) or t.branch %}
{% if t.waiting_on and is_open %}waiting on {{ t.waiting_on }}{% endif %} {% if t.branch %}{{ t.branch }}{% endif %}
{% endif %} {% if t.next_step and is_open %}

Next: {{ t.next_step }}{% if t.next_step_stale %} stale{% endif %}

{% endif %}