{# Shared template macros for tracking-setup. Convention (mirroring scenes-v2 /srv/home/scenes-v2/app/templates/): - Partials are prefixed with `_` and live in /app/templates/. - Import what you need at the top of a template: {% from "_macros.html" import status_badge, kind_badge, action_card %} When a UI fragment is used in 2+ places, extract it here. Don't copy-paste HTML across templates. #} {# Status pill (draft, sent, in_review, approved, etc.). Class hooks live in static/style.css. #} {% macro status_badge(status) -%} {{ status|replace('_', ' ') }} {%- endmacro %} {# Action-kind chip (event, conversion_marking, ads_import, custom_dimension, etc.). #} {% macro kind_badge(kind) -%} {{ kind|replace('_', ' ') }} {%- endmacro %} {# One Action card. Three render modes: mode='internal' — shows edit/delete forms, full spec JSON. mode='review' — shows approve/reject form + comment thread (client-facing). mode='pdf' — print-friendly, no forms, spec rendered as
{{ a.notes_md }}{{ a.spec_pretty }}