{# ── 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 ────────────────────────────────────────── #}
{% if info.updater %}
{% for pkg in info.updater.packages %}
{{ pkg.name }}
{{ pkg.installed }}
{% if pkg.update_available %}
→ {{ pkg.latest }}
{% endif %}
{% if pkg.update_available %}
Update
{% endif %}
{% 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') %}
{{ key }}
{{ val }}
{% 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') %}
{{ key }}
{{ val }}
{% endif %}
{% endfor %}
{# ── Rechte Spalte: System-Karte + Gauges ────────────────────────── #}
{# ── Karte 2: System ─────────────────────────────────────────────── #}
OS
{{ info.system.os_pretty }}
User
{{ info.system.user }}
{% if info.software.get('Datenbank') %}
Datenbank
{{ info.software['Datenbank'] }}
{% endif %}
{# ── Gauges: CPU, RAM, DISK, SWAP ─────────────────────────────────── #}
{# CPU #}
{{ info.cpu.cores }} Kerne · {{ info.cpu.freq }}
{% if info.cpu.model %}
{{ info.cpu.model }}
{% endif %}
{# /padding #}
{# RAM #}
{{ info.mem.used }} belegt {{ info.mem.free }} frei {{ info.mem.total }} gesamt
{# /padding #}
{# DISK (/) #}
{% if info.root_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.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 #}