{# Shared macros for the server-rendered fragments (UI remediation Phase 3). Import with: {% import "site_shell/_macros.html" as ui %} Every macro renders semantic markup styled by /static/styles/pyc-fragment.css and the --pyc-* tokens, so the same badge, pagination footer, empty state, and breadcrumb look identical on every admin, projects, and resources page. Filters used here are installed by foundation.templating.install_template_globals: status_tone, enum_value, display, format_datetime. #} {#- status_badge(status, size="") -- one badge for every status vocabulary; the tone comes from the status_tone filter so a build that is "pending" is amber on every page, not grey on some. #} {% macro status_badge(status, size="") -%} {%- set label = status | state_words -%} {{ label | display }} {%- endmacro %} {#- pagination(endpoint, page, total_pages, params={}, total=None) -- windowed pager inside a labelled