                {% if bookshelf_menu %}
                <li class="nav-item dropdown">
                  <a class="nav-link dropdown-toggle" href="#" id="bookshelfDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                    Bookshelf
                  </a>
                  <ul class="dropdown-menu" aria-labelledby="bookshelfDropdownMenuLink">
                    {% if books_menu %}
                    <li><a class="dropdown-item" href="{% url 'books' %}">Books</a></li>
                    {% endif %}
                    {% if catalogs_menu %}
                    <li><a class="dropdown-item" href="{% url 'catalogs' %}">Catalogs</a></li>
                    {% endif %}
                    {% if magazines_menu %}
                    <li><a class="dropdown-item" href="{% url 'magazines' %}">Magazines</a></li>
                    {% endif %}
                  </ul>
                </li>
                {% endif %}
