20 lines
932 B
HTML
20 lines
932 B
HTML
{% load categories %}
|
|
{% load_categories %}
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
<a class="navbar-brand" href="{% url "home"%}">Il était une fois à l'est</a>
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarText">
|
|
<ul class="navbar-nav mr-auto">
|
|
{% for c in categories %}
|
|
<li class="nav-item
|
|
{% if category.pk == c.pk %}active{%endif%}">
|
|
<a class="nav-link" href="{% url 'content:category-list' c.pk %}">{{c.name}}
|
|
</a></li>
|
|
{% endfor %}
|
|
|
|
<li class="nav-item {% if settings %}active{% endif %}"><a class="nav-link" href="{% url 'settings:index' %}">Administration</a></li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|