     <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#loginNavbar" aria-controls="loginNavbar" aria-expanded="false" aria-label="Toggle navigation">
     <span class="bi bi-person-fill-gear"></span>
     </button>
      <div class="collapse navbar-collapse justify-content-end" id="loginNavbar">
        <ul class="navbar-nav">
          <li class="nav-item dropdown">
            {% if request.user.is_staff %}
            <a class="nav-link dropdown-toggle" href="#" role="button" id="dropdownLogin" data-bs-toggle="dropdown" aria-expanded="false">
              Welcome back, <strong>{{ request.user }}</strong>
            </a>
            <ul class="dropdown-menu" aria-labelledby="dropdownLogin">
              <li><a class="dropdown-item" href="{% url 'admin:roster_rollingstock_changelist' %}">Rolling stock</a></li>
              <li><a class="dropdown-item" href="{% url 'admin:consist_consist_changelist' %}">Consists</a></li>
              <li><a class="dropdown-item" href="{% url 'admin:app_list' 'bookshelf' %}">Bookshelf</a></li>
              <li><a class="dropdown-item" href="{% url 'admin:portal_flatpage_changelist' %}">Pages</a></li>
              <li><a class="dropdown-item" href="{% url 'admin:app_list' 'repository' %}">Repository</a></li>
              <li><a class="dropdown-item" href="{% url 'admin:app_list' 'metadata' %}">Metadata</a></li>
              <li><hr class="dropdown-divider"></li>
              <li><a class="dropdown-item" href="{% url 'admin:index' %}">Admin</a></li>
              <li><a class="dropdown-item" href="{% url 'admin:portal_siteconfiguration_changelist' %}">Site configuration</a></li>
              <li><hr class="dropdown-divider"></li>
              <li>
                <form id="logout-form" method="post" action="{% url 'admin:logout' %}?next={{ request.path }}">
                  {% csrf_token %}
                  <button class="btn btn-link dropdown-item text-danger" type="submit">Log out</button>
                </form>
              </li>
            </ul>
            {% else %}
            <a class="nav-link" href="{% url 'admin:login' %}?next={{ request.path }}">Log in</a>
            {% endif %}
          </li>
          <li class="nav-item dropdown">
            <a class="theme-icon-active nav-link dropdown-toggle" href="#" role="button" id="bd-theme" data-bs-toggle="dropdown" aria-expanded="false">
              <i class="bi bi-circle-half"></i>
            </a>
            <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme">
              <li>
                <button class="theme-icon dropdown-item" data-bs-theme-value="light" aria-pressed="false">
                  <span class="me-2"><i class="bi bi-sun-fill"></i></span> Light
                </button>
              </li>
              <li>
                <button class="theme-icon dropdown-item" data-bs-theme-value="dark" aria-pressed="false">
                  <span class="me-2"><i class="bi bi-moon-stars-fill"></i></span> Dark
                </button>
              </li>
              <li>
                <button class="theme-icon dropdown-item" data-bs-theme-value="auto" aria-pressed="false">
                  <span class="me-2"><i class="bi bi-circle-half"></i></span> Auto
                </button>
              </li>
            </ul>
          </li>
        </ul>
      </div>
