33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{% load categories %}
|
|
{% load_categories %}
|
|
<nav class="navbar navbar-default navbar-inverse">
|
|
<div class="container-fluid">
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="#">Brand</a>
|
|
</div>
|
|
|
|
<!-- 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">
|
|
{% 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="{% url 'vote:home' %}">Vote</a></li>
|
|
<li><a href="{% url 'settings:index' %}">Administration</a></li>
|
|
</ul>
|
|
</div><!-- /.navbar-collapse -->
|
|
</div><!-- /.container-fluid -->
|
|
</nav>
|