{% import 'partials/components/ui_macros.html' as ui %} {% if not info.ok %}
Systeminfo nicht verfügbar
{{ info.error }}
{% else %}
{# ── Haupt-Layout: linke Info-Karte + rechte 2×2-Gauges ───────────── #}
{# ── Linke Karte: Anwendungen + System-Info ───────────────────────── #} {# Paketnamen aus dem Updater sammeln (für Deduplizierung) #} {% set ns = namespace(updater_names=[]) %} {% if info.updater %}{% for p in info.updater.packages %}{% set ns.updater_names = ns.updater_names + [p.name] %}{% endfor %}{% endif %} {# ── Karte 1: Anwendungen ────────────────────────────────────────── #}
Anwendungen {% if info.updater %} {% endif %}
{% if info.updater %} {% for pkg in info.updater.packages %} {% endfor %} {% endif %} {% for key, val in info.software.items() %} {% if key not in ('psutil', 'Datenbank') and key not in ns.updater_names and key.startswith('python') %} {% endif %} {% endfor %} {% for key, val in info.software.items() %} {% if key not in ('psutil', 'Datenbank') and key not in ns.updater_names and not key.startswith('python') %} {% endif %} {% endfor %}
{{ pkg.name }} {{ pkg.installed }} {% if pkg.update_available %} → {{ pkg.latest }} {% endif %} {% if pkg.update_available %} {% endif %}
{{ key }} {{ val }}
{{ key }} {{ val }}
{# ── Rechte Spalte: System-Karte + Gauges ────────────────────────── #}
{# ── Karte 2: System ─────────────────────────────────────────────── #}
System
{% if info.software.get('Datenbank') %} {% endif %}
OS {{ info.system.os_pretty }}
User {{ info.system.user }}
Datenbank {{ info.software['Datenbank'] }}
{# ── Gauges: CPU, RAM, DISK, SWAP ─────────────────────────────────── #}
{# CPU #}
CPU
{{ info.cpu.percent }}%
{{ info.cpu.cores }} Kerne · {{ info.cpu.freq }} {% if info.cpu.model %}
{{ info.cpu.model }}
{% endif %}
{# /padding #}
{# RAM #}
RAM
{{ info.mem.percent }}%
{{ info.mem.used }} belegt{{ info.mem.free }} frei{{ info.mem.total }} gesamt
{# /padding #}
{# DISK (/) #} {% if info.root_disk %}
DISK
{{ info.root_disk.percent }}%
{{ info.root_disk.used_fmt }} belegt{{ info.root_disk.free_fmt }} frei{{ info.root_disk.total_fmt }} gesamt
{# /padding #}
{% else %}
{% endif %} {# Extra-Disks (aus Einstellungen oder configure()) #} {% for ed in info.extra_disks %}
{{ ed.label }}
{{ ed.percent }}%
{{ ed.used_fmt }} belegt{{ ed.free_fmt }} frei{{ ed.total_fmt }} gesamt
{# /padding #}
{% endfor %} {% if not info.extra_disks %}
{% endif %}
{# /sysinfo-gauges-grid #}
{# /rechte Spalte #}
{# /content-columns #} {# ──────────────────────────────────────────────────────────────────── #} {# LEGACY-ABSCHNITT ENTFERNT (gauges + app-grid) – neues Layout oben #} {# Dummy-Elemente damit ältere HTMX-Targets nicht brechen #}
{# /data-collected-at #} {% endif %}