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