{# proxmox_jobs/partials/mobile_cards.html Mobile-Karten für Proxmox-Jobs (vzdump/sync/verify/prune). #} {% import 'partials/components/mobile_card_macros.html' as mc %} {% set _type_labels = {'vzdump': 'Backup', 'sync': 'Sync', 'verify': 'Verify', 'prune': 'Prune'} %} {% if cfg %} {% for item_id, item in cfg.items() %} {% set _footer %}{{ mc.m_card_actions_default(module, item_id, item, container_id, loading_id, card_actions=_card_actions) }}{% endset %} {% call mc.m_card(item.get('job') or item_id, status=item.get('last_status'), enabled=item.get('enabled', True), footer=_footer) %} {{ mc.m_card_row('Typ', _type_labels.get(item.get('type'), item.get('type'))) }} {{ mc.m_card_row('Host', resolve_remote_host(item.get('remote_id')) if item.get('remote_id') else none) }} {{ mc.m_card_row('Letzter Lauf', item.get('last_run')) }} {% endcall %} {% endfor %} {% else %}
Keine Einträge vorhanden
Erstelle den ersten Eintrag mit „Neu"
{% endif %}