catégorie actuelle affichée.
This commit is contained in:
parent
21c1a5719b
commit
772cf3e5f6
1 changed files with 9 additions and 4 deletions
|
@ -16,9 +16,14 @@
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
|
{% for c in categories %}
|
||||||
{% for category in categories %}
|
{% if category.id == c.id %}
|
||||||
<li><a href="{% url 'content:category-list' category_id=category.id %}">{{category.name}}</a></li>
|
<li class="active">
|
||||||
|
{%else%}
|
||||||
|
<li>
|
||||||
|
{%endif%}
|
||||||
|
<a href="{% url 'content:category-list' category_id=c.id %}">{{c.name}}
|
||||||
|
</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li><a href="">Vote</a></li>
|
<li><a href="">Vote</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
|
|
Loading…
Reference in a new issue