{% load static i18n %} {% url 'logout' as logout_url %} {% url 'login' as login_url %} {% if adminlte.usermenu and user.is_authenticated %} {# Rich user card (mirrors the HTML demo topbar) — shown only to a signed-in user, so logged-out visitors never see a populated account card. #} {% else %} {# Simple user menu driven by the authenticated Django user. #} {% endif %}