{# The pieces every Curb page is built from (Curb PRD §11.3). Imported `with context`, so a macro reads the page's own state: whether names are shown, whether this machine can ask for an approval, and where the page is. #} {% import "_icon.html" as ico %} {% macro risk(level, tone, long=false) -%} {{ level }}{{ " risk" if long }} {%- endmacro %} {# A state in words, with a mark, so it does not rest on colour. #} {% macro st(kind, text) -%} {%- if kind == "open" %}{{ ico.icon('unlock', 12) }} {{ text }} {%- elif kind == "closed" %}{{ ico.icon('lock', 12) }} {{ text }} {%- elif kind == "proved" %}{{ ico.icon('shield', 12) }} {{ text }} {%- elif kind == "on" %}{{ ico.icon('check', 12) }} {{ text }} {%- else %}{{ text }}{% endif %} {%- endmacro %} {# A name or a location. The server sends it only to a browser with a live reveal. #} {% macro slot(value) -%} {%- if value %}{{ value }} {%- else %}{{ ico.icon('lock', 12) }} hidden{% endif %} {%- endmacro %} {# The link that opens one review. Without scripts it loads this page with the review open. #} {% macro rev(name, extra="") -%} {{ here }}{{ "&" if "?" in here else "?" }}review={{ name }}{{ extra }} {%- endmacro %} {# A button that changes something: a review first, then the operating system asks. #} {% macro act(label, name, kind="", extra="", shield=true) -%} {%- if shield and (read_only or paused_until) -%} {%- else -%} {% if shield %}{{ ico.icon('shield', 14) }} {% endif %}{{ label }} {%- endif -%} {%- endmacro %} {# A check that only reads: it runs at once, and the button says it is working. #} {% macro again(label="Check again") -%} {{ ico.icon('refresh', 14) }} {{ label }} {%- endmacro %} {% macro ask_names(text="Show names and locations") -%} {{ text }} {%- endmacro %} {# When a slow check was last done, or that one is running now. #} {% macro checked(held) -%} {%- if held.busy %} Checking again… {%- elif held.at %}Checked {{ ago(held.at) }}.{% endif %} {%- endmacro %} {# How every part opens: what it is for, where its facts come from, its actions. #} {% macro head(what, src, held=none) -%}
{{ what }}
{{ src }}{% if held %} {{ checked(held) }}{% endif %}
{{ what }}
Curb is reading each agent's settings, and looking for credentials on this machine. It takes a few seconds, and this page updates when it is done.
Curb could not check this machine. {{ error }}. The terminal that runs flanner web has the details.
{{ again("Check again") }}