{#- 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 %}