{% extends "base.html" %} {% block title %} - {{ t('nav.dashboard') }}{% endblock %} {% block main_class %}layout-fill{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
<{{ 'a' if show_mem else 'div' }} class="status-strip sev-{{ dash_sev }}"{% if show_mem %} href="/diagnostics"{% endif %}> {% if mqtt_is_connected() %}{{ t('dashboard.broker_connected') }}{% else %}{{ t('dashboard.broker_disconnected') }}{% endif %} {{ t('dashboard.uptime', uptime=(hub_uptime or '-')) }} {{ t('dashboard.hub_id', hub_id=(hub_server_id or '-')) }} {% if pending_actions %}
{{ t('dashboard.pending_approvals') }} ({{ pending_actions|length }})
{% for a in pending_actions %}
{{ a.description }} {{ t('common.pending_approvals_timeout', timeout=a.timeout) }}
{% endfor %}
{% endif %} {% if show_tasks or show_mem %}
{% if show_tasks %}
{{ t('dashboard.tasks') }}
{{ task_detail }}
{% if task_broken %}
{{ task_broken|join(', ') }}
{% elif task_restarting %}
{{ task_restarting|join(', ') }}
{% endif %}
{% endif %} {% if show_mem %}
{{ t('dashboard.memory') }}
{{ mem_mb }} {{ t('dashboard.memory_rss') }}
{% endif %}
{% endif %}
{% if show_logs %}
{{ t('dashboard.recent_logs') }} {{ t('dashboard.auto_refresh') }} ⟳ {{ t('dashboard.view_all') }}
{% include "_log_rows.html" %}
{% endif %} {% endblock %}