{# #316: where the work on a ticket is. `live`: a row's `live` object (the state in another worktree, only when it differs from the local file); `where(id)`: the claim of `work[id]` (the `claim` and `live` of a `tkt focus --tickets --live --json` row), on every claimed row of every focus view. Pages without `work` (the tree, the board) show no claim line. #} {% macro live_line(live) %}{% if live %}⟳ {{ live.status | replace('_', ' ') }} in {{ live.branch or (live.worktree | wtname) }}{% if live.acTotal %} · {{ live.acDone }}/{{ live.acTotal }} AC{% endif %}{% endif %}{% endmacro %} {% macro where(id) %}{% set w = (work or {}).get(id) %}{% if w and w.claim %}{% set c = w.claim %}
{%- if c.stale %}⚠ stale: worktree gone · {% endif -%} {%- if c.here %}⌂ here {%- elif c.worktree %}⌂ {{ c.worktree | wtname }} {%- else %}⌂ no worktree recorded{% endif %} {%- if c.branch %} · {{ c.branch }}{% endif %} {%- if c.assignee %} · {{ c.assignee }}{% endif %} {{- ' · ' }}{{ c.ageSeconds | age }} {%- if w.live and w.live.lastNote %}last note: {{ w.live.lastNote }}{% endif -%}
{% endif %}{% endmacro %} {# #383: on a server store every write is a commit and no worktree state reaches the server: say so where live state would show, instead of an empty section. #} {% macro server_live_note() %}{% if server_store %}

Live state: a server store has no live worktree state; a change shows once it is written.

{% endif %}{% endmacro %}