2018-01-24 10:44:54 +00:00
|
|
|
{% load categories %}
|
|
|
|
{% load_categories %}
|
2018-02-12 08:16:25 +00:00
|
|
|
<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">
|
2018-01-24 11:00:01 +00:00
|
|
|
{% for c in categories %}
|
2018-02-12 08:16:25 +00:00
|
|
|
<li class="nav-item
|
|
|
|
{% if category.pk == c.pk %}active{%endif%}">
|
|
|
|
<a class="nav-link" href="{% url 'content:category-list' c.pk %}">{{c.name}}
|
2018-01-24 11:00:01 +00:00
|
|
|
</a></li>
|
2018-01-24 10:44:54 +00:00
|
|
|
{% endfor %}
|
2018-02-12 08:16:25 +00:00
|
|
|
|
|
|
|
<li class="nav-item {% if settings %}active{% endif %}"><a class="nav-link" href="{% url 'settings:index' %}">Administration</a></li>
|
2018-02-28 14:06:55 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2018-01-20 22:14:11 +00:00
|
|
|
</nav>
|