{% macro stat(title, value, desc="", accent="") %}
{{ title }}
{{ value }}
{% if desc %}
{{ desc }}
{% endif %}
{% endmacro stat %} {% macro badge(text, kind="neutral") %} {{ text }} {% endmacro badge %} {% macro category_badge(cat) %} {% if cat == "Read" %} read {% elif cat == "Mutation" %} mutation {% elif cat == "Destructive" %} destructive {% elif cat == "Admin" %} admin {% else %} {{ cat }} {% endif %} {% endmacro category_badge %} {% macro outcome_badge(record) %} {% if record.outcome.status == "ok" %} ok {% else %} err {{ record.outcome.code }} {% endif %} {% endmacro outcome_badge %} {% macro server_status(status) %} {% if status == "running" %} running {% elif status == "off" %} off {% elif status == "not_provisioned" %} declared {% elif status == "initializing" or status == "starting" %} {{ status }} {% elif status %} {{ status }} {% else %} {% endif %} {% endmacro server_status %} {% macro ws_tabs(ws_name, active, ws_envs, ws_has_clusters=false, ws_has_workflows=false, current_env="") %} {# Row 1 (.ws-nav): Overview | Infras▼ | [spacer] | Reflect▼ | Track▼ | Knowledge▼ | Dev▼ Row 2 (.ws-subnav): Servers | Components | Settings | [Workflow] (only when current_env set) nav-icon / nav-label classes hook into the global html.nav-icons / html.nav-names CSS. Mobile (