site_tps/templates/nav_bar.html

34 lines
1.2 KiB
HTML
Raw Normal View History

2018-01-24 10:44:54 +00:00
{% load categories %}
{% load_categories %}
2018-01-22 21:11:16 +00:00
<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">
2018-01-24 11:00:01 +00:00
{% for c in categories %}
2018-01-30 22:07:08 +00:00
{% if category.pk == c.pk %}
2018-01-24 11:00:01 +00:00
<li class="active">
{%else%}
<li>
{%endif%}
2018-01-30 22:07:08 +00:00
<a 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 %}
<li><a href="{% url 'vote:home' %}">Vote</a></li>
2018-01-30 20:39:44 +00:00
<li><a href="{% url 'settings:index' %}">Administration</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
2018-01-20 22:14:11 +00:00
</nav>