{# 象限几何必须写在片段自己的内联样式里:这个片段是由前端路由 swap 进来的, 而 swap 不会重新解析样式表——页面打开期间改过 CSS 的话,新片段配上旧 CSS 就会退化成从上往下的列表(四象限全丢)。样式表只管外观,布局随片段走。 #}
{# 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 %}
{% endif %}
{{ _('Security Report') }}

{{ _('Loading...') }}

{{ _('System Metrics') }} {{ _('Live') }}

{{ _('Loading metrics...') }}

📋 {{ _('Recent Detections') }} {% if active_site %}{{ active_site_name or active_site }}{% endif %} {{ _('View all') }}

{{ _('Loading records...') }}

{{ _('LIVE LOG STREAM') }} {{ _('SSE') }} {{ _('Analyze') }}
{{ log_history|safe if log_history else '

' + _('Connecting to log stream...') + '

' }}