{% extends "tungsten/layout/base.html" %} {% import "tungsten/components/ui.html" as ui %} {% block body %}
{# ------------------------------------------------------------ sidebar #}
{# ------------------------------------------------------------ main #}
{% if panel.sidebar_collapsible %} {% endif %} {{ panel.hooks('topbar.start', ctx) }} {% if panel.global_search_enabled %} {% include "tungsten/components/global-search.html" %} {% endif %}
{{ panel.hooks('topbar.end', ctx) }} {% if panel.dark_mode %} {% endif %} {% if user and panel.database_notifications %} {% include "tungsten/components/notification-bell.html" %} {% endif %} {% if user %} {% call(part) ui.dropdown(width='w-60') %} {% if part == 'trigger' %} {% else %}

{{ user_name }}

{{ user | attr(panel.auth.email_field) or '' }}

{% if panel.auth.profile %}{{ icon('user', 'h-4 w-4') }}{{ __('My profile') }}{% endif %} {% for item in user_menu_items %}{{ icon(item.icon, 'h-4 w-4') }}{{ __(item.label) }}{% endfor %} {{ panel.hooks('user-menu.items', ctx) }}
{% if panel.locales | length > 1 %}

{{ icon('languages', 'h-3.5 w-3.5') }}{{ __('Language') }}

{% for lang in panel.language_options() %}
{% endfor %}
{% endif %}
{% endif %} {% endcall %} {% endif %}
{{ panel.hooks('content.start', ctx) }} {% block content %}{% endblock %} {{ panel.hooks('content.end', ctx) }}
{% endblock %}