{% 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") }}