{# `doctor`, rendered. `unknown` is a check that could not run and is deliberately not `ok` — the distinction is the report's whole value. #}{% extends layout %} {% import "macros.html" as m %} {% block content %} {% if panels.doctor.ok %}

{{ m.state(panels.doctor.data.state) }}

{% for check in panels.doctor.data.checks %} {# The command, shown rather than offered as a button. Capturing a session reads a secret without echoing it and mints a credential, so it belongs to a terminal — `docs/surfaces.md` §4. A button here would either do nothing or need an authenticated local helper that does not exist yet, and both are worse than the sentence that tells you what to type. #} {% endfor %}
CheckStateDetailWhat to run
{{ check.name }} {{ m.state(check.state) }} {{ check.detail }}{% if check.remedy %}{{ check.remedy }}{% else %}—{% endif %}

doctor builds nothing expensive — no model runtime is loaded and no document is read — which is why it is safe to run on an installation that is not working.

{% else %}{{ m.failed(panels.doctor) }}{% endif %} {% endblock %}