{#
  Copyright (C) 2020-2023 Graz University of Technology.
  Copyright (C) 2025 I-Form Advanced Manufacturing Research Centre.

  invenio-theme-iform is free software; you can redistribute it and/or
  modify it under the terms of the MIT License; see LICENSE file for more
  details.
#}

{% if not config.THEME_IFORM_PRODUCTION %}
    <div class="ui sticky test-instance">
        <h4>{{ _("Test Instance") }}</h4>
        <p>{{ _("This is the test instance of the I-Form Repository.") }}</p>
    </div>
{% endif %}

<div>
    <header>
        {%- block site_banner %}
            {% from 'invenio_banners/banner.html' import banner %}
            {{ banner() }}
        {%- endblock site_banner %}

        {%- block navbar %}
            <nav>
                {%- block navbar_header %}
                    {%- include "invenio_theme_iform/navbar.html" %}
                {%- endblock navbar_header %}

                <div class="ui container">
                    <div class="ui grid stackable container">
                        <div class="three column row centered" style="padding-bottom: 0;">
                            <div class="two wide column main-menu-entry">
                                <a
                                    href="{{ url_for('invenio_theme_iform.index') }}"
                                    title="{{ _('Home') }}"
                                    class="no-decoration"
                                >
                                    <span class="home-inline">
                                        {%- include "invenio_theme_iform/home_icon.svg" %} {{ _("Home") }}
                                    </span>
                                </a>
                             </div>

                             <div class="two wide column main-menu-entry">
                                 <a role="menuitem" href="/communities" class="no-decoration"
                                     >{{ _("Communities") }}</a
                                 >
                             </div>
                             <div class="two wide column main-menu-entry">
                                 <a role="menuitem" href="/me/overview" class="no-decoration"
                                     >{{ _("Dashboard") }}</a
                                 >
                             </div>
                        </div>

                        <div id="margin-divider" class="ui divider main-menu-underline-line"></div>
                    </div>

                    <div class="spacer"></div>
                </div>
            </nav>
        {%- endblock navbar %}

        {%- block flashmessages %}
            {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%}
            {{ flashed_messages() }}
        {%- endblock %}
    </header>
</div>
