{# core/ui/templates/partials/mobile_cards_generic.html Generisches Mobile-Karten-Template – Fallback für list_wrapper_inner.html. Wird automatisch verwendet wenn {module}/partials/mobile_cards.html fehlt. Verfügbare Variablen (aus list_wrapper_inner.html geerbt): cfg – dict {item_id: item_dict} module – Modulname container_id – ID des Listen-Containers loading_id – ID des Lade-Indikators _ui_cols – deklarative Spalten (Col-Instanzen) oder [] _card_actions – Aktions-Buttons (aus modul.yaml card_actions) _item_url_prefix – URL-Präfix für Item-Links has_status – bool has_run_buttons – bool has_edit – bool has_delete – bool running – dict laufender Jobs Konvention für modulspezifische Karten: Lege {module}/partials/mobile_cards.html an. Dieses Template hat Zugriff auf dieselben Variablen und wird bevorzugt geladen. #} {% import 'partials/components/ui_macros.html' as ui %} {% if cfg %} {% for item_name, item_data in cfg.items() %} {%- set is_running = (module ~ ":" ~ item_name) in (running or {}) -%} {%- set _status = 'running' if is_running else (last_run_status(module, item_name) if last_run_status is defined else none) or item_data.get('last_status') -%} {%- set _title = item_data.get('description') or item_data.get('job') or item_data.get('host') or item_name -%}