{% import 'partials/components/ui_macros.html' as ui %}
{# ── Gauges: CPU / RAM / Swap / Disk ──────────────────────────────── #}
{# CPU #}
CPU
{{ info.cpu.percent }}%
{{ info.cpu.cores }} Kerne · {{ info.cpu.freq }} {% if info.cpu.model %}
{{ info.cpu.model }}
{% endif %}
{# RAM #}
RAM
{{ info.mem.percent }}%
{{ info.mem.used }} belegt{{ info.mem.free }} frei{{ info.mem.total }} gesamt
{# Swap #}
SWAP
{{ info.swap.percent }}%
{{ info.swap.used }} belegt{{ info.swap.total }} gesamt
{# 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
{% endif %} {# Extra-Disks (projektspezifisch via configure(extra_disks=[...])) #} {% for ed in info.extra_disks %}
{{ ed.label }}
{{ ed.percent }}%
{{ ed.used_fmt }} belegt{{ ed.free_fmt }} frei{{ ed.total_fmt }} gesamt
{% endfor %}
{# ── Anwendung + Updates nebeneinander ────────────────────────────── #}
{# Anwendung #}
Anwendung
{% for key, val in info.software.items() %} {% if key != 'psutil' %} {{ key }} {{ val }} {% endif %} {% endfor %} Verzeichnis {{ info.system.cwd }} User {{ info.system.user }}
{% if info.services %}
{% for svc in info.services %}
{{ svc.name }}
{% if svc.desc %}
{{ svc.desc }}
{% endif %}
{{ svc.enabled }} {{ svc.active }}
{% endfor %}
{% endif %}
{# Updates (nur wenn Updater konfiguriert) #} {% if info.updater %} {% set upd = info.updater %}
Updates
{% if upd.last_checked %} Geprüft: {{ upd.last_checked }} {% endif %} {% if upd.packages | selectattr('update_available') | list %} {% else %} {% endif %}
{% for col in ['Paket', 'Installiert', 'Verfügbar', ''] %} {% endfor %} {% for pkg in upd.packages %} {% endfor %}
{{ col }}
{{ pkg.name }} {{ pkg.installed }} {% if pkg.latest == '—' %} {% elif pkg.update_available %}{{ pkg.latest }} {% else %}aktuell{% endif %} {% if pkg.update_available %} Update verfügbar {% endif %}
{% endif %}
{# /data-collected-at #}