<header class="site-header">
    <div class="container nav-bar">
        <a href="{{ url_for('index') }}" class="brand">dasunternehmen</a>

        <nav class="main-nav">
            {% if current_user %}
                <a href="{{ url_for('dashboard') }}">Themen</a>

                <div class="user-menu">
                    <span>{{ current_user.name }}</span>
                    <div class="dropdown">
                        <a href="{{ url_for('profile') }}">Profil</a>
                        {% if is_admin %}
                            <a href="{{ url_for('admin_index') }}">Admin</a>
                            <!-- <a href="{{ url_for('admin_themen') }}">Themen</a>
                            <a href="{{ url_for('admin_users') }}">User</a>
                            <a href="{{ url_for('admin_contacts') }}">Ansprechpartner</a> -->
                        {% endif %}
                        <a href="{{ url_for('logout') }}">Logout</a>
                    </div>
                </div>
            {% else %}
                <a href="{{ url_for('login') }}">Login</a>
                <a href="{{ url_for('register') }}">Registrieren</a>
            {% endif %}
        </nav>
    </div>
</header>