{% set cfg = application_config() %}{% set appinfo = application_info() %}{% set general = cfg.get('general', {}) %}{% set colors = general.get('colors', {}) %}{% set auth = cfg.get('authentication', {}) %}{% set session_user = request.session.get('user') if request else None %}{% set current_language = (session_user.language_code if session_user else request.session.get('language_code', general.get('default_language', 'en'))) %}{% set theme_mode = session_user.theme_mode if session_user and session_user.theme_mode in ['light','dark'] else general.get('default_theme', 'light') %} {{ title or general.get('title', 'AssetManager') }}{% set favicon_path = general.get('favicon') or general.get('logo') %}{% if favicon_path %}{% endif %}
{% if general.get('logo') %}Logo{% endif %}{{ general.get('title', 'AssetManager') }}{% if general.get('company_name') %}– {{ general.get('company_name') }}{% endif %}
{% if session_user %}
{% endif %}
🌐 {{ current_language|upper }} ▾
{% for language in available_languages() %}
{% endfor %}
👤 {{ session_user.display_name if session_user else t('app.guest') }} ▾
{% if session_user %}{{ t('app.profile') }}{{ t('app.logout') }}{% else %}{% if auth.get('mode', 'none') == 'none' %}Authentication disabled{% endif %}{{ t('app.login') }}{% endif %}

{{ general.get('title', 'AssetManager') }}

{% set fixed_manufacturer_logo = manufacturer_logo_path() %} {% if fixed_manufacturer_logo %}{% endif %}
{{ t('about.version') }}
{{ application_version() }}
{% if appinfo.author %}
{{ t('about.author') }}
{{ appinfo.author }}
{% endif %} {% if appinfo.organization %}
{{ t('about.organization') }}
{{ appinfo.organization }}
{% endif %} {% if appinfo.contact %}
{{ t('about.contact') }}
{{ appinfo.contact }}
{% endif %} {% if appinfo.license %}
{{ t('about.license') }}
{{ appinfo.license }}
{% endif %} {% if appinfo.website %}
{{ t('about.website') }}
{{ appinfo.website }}
{% endif %} {% if appinfo.repository %}
{{ t('about.repository') }}
{{ appinfo.repository }}
{% endif %} {% if appinfo.copyright %}
{{ t('about.copyright') }}
{{ appinfo.copyright }}
{% endif %}
{% block content %}{% endblock %}