{% if construct.icon_mode == "bootstrap" %} {% else %} {% endif %} {% if construct.design_stylesheet %} {% endif %} {% block head_extra %}{% endblock %}
{% block navbar %} {{ construct.title }}
{% block global_access %} {# Search & notifications are gated behind auth, so only show them when the user can actually use them (no auth provider, or logged in). #} {% if construct.search and construct.navbar_features_available %} {% endif %} {% if construct.notifications and construct.navbar_features_available %} {# No-JS dropdown via native
; refreshes via Unpoly polling in JS mode. The close-on-outside-click / open-state JS is below. #} {% include "themes/whitelabel/navbar/notifications.html" %} {% endif %} {% if construct.auth and construct.auth.is_authenticated() %}
{{ construct.auth.current_user_name() or "" }} {{ icon("expand", cls="fcu-navbar__dropdown-arrow") }}
{% for item in construct.auth.user_menu_items() %} {% if item.icon %}{{ icon(item.icon) }}{% endif %} {{ item.label }} {% endfor %}
{% endif %} {% endblock global_access %}
{% endblock navbar %}
{% block sidebar %} {% endblock sidebar %}
{% include "themes/whitelabel/style/_flashes.html" %} {% block content %} {% endblock %}