{# Shared markup fragments; IDs/classes must stay stable for JS/CSS. clock_thumb_header / loading_overlay: omitted here because manual-log vs tooth-count vs frequencies headers and graph loading shells differ in wrapping elements and IDs; duplicating one pattern would not reduce real drift. #} {# Status bar items: whatever is inside moves into the shell's status bar while the view is mounted (modules/app/statusBar.js). Use {% call cg.status_bar_slot() %}…{% endcall %}. #} {% macro status_bar_slot() -%} {%- endmacro %} {# ---- Header controls (modules/app/appBar.js, tools/headerControls.js) ---------------- A view on the app bar keeps its header controls in its template, in this fallback box: {% call cg.header_controls() %} {% call cg.header_primary() %}…{% endcall %} {% call cg.header_secondary() %}…{% endcall %} {% endcall %} A primary mount moves the two groups into the app bar (mountHeaderControls); modal and embedded mounts show the box as a plain bar inside the view. Primary: what the user needs while looking at the view; secondary: setup and rarely changed controls (they may wrap to the app bar's second row, which retracts on scroll). #} {% macro header_controls(label=None, hidden=False) -%}