{# Owner-only publish/unpublish switch for a /trips listing card (U3, R10/R11). Rendered by trips.html.twig as a SIBLING of the navigating card (never a child of it), overlaid top-right on the cover, so a click on it toggles publish state rather than following the card link (KTD6). trip-publish.js binds the button by `.trip-publish-toggle` and drives it from the data-* below. Params: trip Page — the trip whose published state this controls is_active bool — true when this trip is site.active_trip; drives the "home page loses it" confirm in the JS (R12) #} {% set is_active = is_active ?? false %}
Draft