{# borg/partials/mobile_cards.html Mobile-Karten für Borg-Backup-Jobs -- Quelle/Ziel als aufgelöstes Remote-Path-Paar (resolve_remote_host() ist eine globale Template- Funktion, siehe astrapi_core/ui/app.py:register_remote_resolver). #} {% import 'partials/components/mobile_card_macros.html' as mc %} {% macro _rp(remote_id, path) %} {%- set _h = resolve_remote_host(remote_id) if remote_id else '—' -%} {{- ('Lokal' if _h == '—' else _h) ~ ':' ~ (path or '—') -}} {% endmacro %} {% 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('description') or item_id, status=item.get('last_status'), enabled=item.get('enabled', True), footer=_footer) %} {{ mc.m_card_row('Quelle', _rp(item.get('source_remote_id'), item.get('source_path'))) }} {{ mc.m_card_row('Ziel', _rp(item.get('target_remote_id'), item.get('target_path'))) }} {{ mc.m_card_row('Letzter Lauf', item.get('last_run')) }} {% endcall %} {% endfor %} {% else %}