{# users/partials/mobile_cards.html Modul-spezifischer Override für list_wrapper_inner.html (mobile_cards_generic.html kennt kein extra_actions_template/admin-Gating, siehe dessen eigener Konventions-Hinweis). #} {% import 'partials/components/ui_macros.html' as ui %} {% import 'partials/components/mobile_card_macros.html' as mc %} {% if cfg %} {% for item_name, u in cfg.items() %} {% set _footer %} {% if current_user.is_admin %} {% if item_name != (current_user.id | string) and can_delete %} {% endif %} {% endif %} {% endset %} {% call mc.m_card(u.description, footer=_footer) %} {{ mc.m_card_row('Benutzername', u.username) }} {{ mc.m_card_row('Rolle', 'Administrator' if u.role == 'admin' else 'Nutzer') }} {{ mc.m_card_row('Passkey', u.credential_display) }} {% endcall %} {% endfor %} {% else %}
Keine Nutzer
{% endif %}