{# ================================================================= #} {# — Sidebar user menu (dropup) #} {# #} {# Props: #} {# display_name – User's display name (name + fallback) #} {# subtitle – Optional secondary text (email, role …) #} {# avatar_url – Profile photo URL. Empty → SVG icon #} {# avatar_size – Size token for avatar (default: sm) #} {# show_account_center – Show Account Center link (default: True) #} {# show_logout – Show Logout button (default: True) #} {# class – Extra classes on the wrapper #} {# #} {# Slots: #} {# default – Custom menu items (placed between Account #} {# Center link and Logout button) #} {# #} {# Examples: #} {# Minimal: #} {# #} {# #} {# With avatar and custom item: #} {# #} {# #} {# #} {# ================================================================= #} {% load i18n mvp %} {% if request.user.is_authenticated %} {{ slot }} {% url 'account_logout' as logout_url %} {% if logout_url %}
{% csrf_token %}
{% endif %}
{% endif %}