Show booshelf menu

This commit is contained in:
2023-10-02 23:16:54 +02:00
parent 98c696b2d9
commit 22bee7d95d
4 changed files with 23 additions and 9 deletions

View File

@@ -171,10 +171,8 @@
<li><a class="dropdown-item" href="{% url 'manufacturers' category='real' %}">Real</a></li>
</ul>
</li>
{% show_menu %}
<li class="nav-item">
<a class="nav-link" href="{% url 'books' %}">Books</a>
</li>
{% show_flatpage_menu %}
{% show_bookshelf_menu %}
</ul>
{% include 'includes/search.html' %}
</div>

View File

@@ -0,0 +1,10 @@
{% if bookshelf_menu %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Bookshelf
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="nav-link" href="{% url 'books' %}">Books</a></li>
</ul>
</li>
{% endif %}

View File

@@ -1,10 +1,10 @@
{% if menu %}
{% if flatpage_menu %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Articles
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{% for m in menu %}
{% for m in flatpage_menu %}
<li><a class="dropdown-item" href="{{ m.get_absolute_url }}">{{ m.name }}</a></li>
{% endfor %}
</ul>