{# =========================================================================== companies/_track_button.html — "Track careers page" action (WP6) =========================================================================== Shared by two surfaces, selected via `ui`: ui='menu' — job-row overflow-menu item (jobs/_row_expanded.html) ui='card' — suggested-companies row on the Companies page Context: company_name (required), dedup_key (optional, logging context), tracked (bool). POST /companies/track responds with this same partial, tracked=True, swapped in via hx-target="this" hx-swap="outerHTML" (200, never 204 — HTMX outerHTML swap convention). #} {% if ui == 'card' %} {% if tracked %} Tracking {% else %} {% endif %} {% else %} {% if tracked %}