{# The capability band only carries information when something is wrong. The
healthy state used to render "正常 检测: … 通知: …" on every visit, costing the
quadrants ~48px of height to say nothing. #}
{% if runtime_capabilities.status == 'degraded' or runtime_capabilities.warnings %}
{{ _('Degraded') if runtime_capabilities.status == 'degraded' else _('Healthy') }}{{ _('Detection') }}: {{ _('YARA + Emergency') if runtime_capabilities.detection.mode == 'yara_and_emergency' else _('Emergency signatures') }}{{ _('Notifications') }}: {{ _('External (%(channels)s)', channels=runtime_capabilities.notifications.configured_channels|join(', ')) if runtime_capabilities.notifications.mode == 'external' else _('Local logs only') }}
{% for warning in runtime_capabilities.warnings %}{{ warning.message }}{% endfor %}