{# Detail-page Keep/Pass/Untrack action bar (ARG-184). Rendered both by item_detail.html (initial page load) and as the HTMX swap target for POST /items/{id}/keep|pass?context=detail and POST /assets/{id}/untrack?context=detail. Passing ``context=detail`` on those routes is what makes them return THIS partial instead of the feed's ``_feed_card.html`` — the detail page has exactly one card on screen, so it needs its own standalone fragment rather than a full card re-render. Once an item is Kept, the Keep button is replaced by Untrack (mirrors the portfolio's one-way "release from Keep" action) rather than staying a togglable ✓ Keep — Pass stays a toggle in both states, same as the feed. #} {% set is_kept = item.status and item.status.value == 'Keep' %} {% set is_passed = item.status and item.status.value == 'Archived' %} {% set untrack_params = ['context=detail', 'tech_id=' ~ item.id] %} {% set pass_params = ['context=detail'] + (['active=1'] if is_passed else []) %}