{% import 'partials/components/ui_macros.html' as ui %} {% import 'partials/components/mobile_card_macros.html' as mc %} {% from 'partials/components/ui_macros.html' import btn, btn_save %} {# Gauge-Karte für die 2x2-Kachelreihe. style='ring' (Default, CPU/RAM): Desktop linearer Balken + caller()-Subtext (ausführlich, viel Platz), Mobile Ring (iOS/Android-Systemeinstellungen- Stil) + eigener, kompakter mobile_sub-Text -- zwei Ringe nebeneinander in schmalen Kacheln haben keinen Platz für den ausführlichen Desktop-Text (siehe .sysinfo-gauge-card--ring). style='bar' (DISK/Extra-Disks): auf Mobile UND Desktop derselbe lineare Balken + caller()-Subtext -- volle Breite, eigene Grid-Zeile (.sysinfo-gauge-card--wide). r=42 -> Umfang 2*pi*42 ≈ 263.9. #} {% macro gauge_card(label, percent, color, style='ring', mobile_sub=none) %}
| {{ pkg.name }} | {{ pkg.installed }} {% if pkg.update_available %} → {{ pkg.latest }} {% elif pkg.latest and pkg.latest != '—' %} aktuell {% endif %} | {% if pkg.update_available and info.updater.status not in ('running', 'checking') %} {{ btn('Update', variant='primary', size='', busy_label='Starte…', attrs='style="white-space:nowrap; font-size:11px; padding:3px 10px;" hx-post="/ui/system/update" hx-target="#system-metrics" hx-swap="outerHTML"') }} {% endif %} |
| {{ key }} | {{ val }} | |
| {{ key }} | {{ val }} |
| OS | {{ info.system.os_pretty }} | |
| User | {{ info.system.user }} | |
| Datenbank | {{ info.software['Datenbank'] }} |