{# Shared redesign macros. Import with: {% import '_ui.html' as ui %} #} {# Status chip. kind: fail err act run ok warn neutral w11 w10 off edit remove #} {% macro chip(text, kind='neutral', title=None) -%} {{ text }} {%- endmacro %} {# Segmented stage track: one segment per stage; earlier ones grey, the current one in the status colour (kind: fail act run ok). #} {% macro track(total, current, kind='run', label=None) -%} {% set total = total or 0 %}{% set current = current or 0 %} {%- endmacro %} {# "..." menu. The caller block supplies /