Commit 1ba2f206 authored by Jean Michel Rouly's avatar Jean Michel Rouly Committed by Chris Reffett
Browse files

Replaced navigation bar with bootstrapped navbar.

parent 07fefcd9
<p id="tagline">
[ <a href="{% url 'about' %}">What is Go?</a> ]
{% if user.is_authenticated %}
| [ <a href="{% url 'my_links' %}">My Links</a> ]
{% if user.is_staff %}
| [ <a href="{% url 'signup' %}">User Registration</a> ]
| [ <a href="{% url 'adminpanel' %}">Administration</a> ]
{% endif %}
| [ <a href="{% url 'go_logout' %}">Log Out</a> ]
{% else %}
| [ <a href="{% url 'go_login' %}">Log In</a> ]
{% endif %}
</p>
<div class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'index' %}">Go</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li><a href="{% url 'about' %}">About</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'my_links' %}">My Links</a></li>
{% if user.is_staff %}
<li><a href="{% url 'adminpanel' %}">Administration</a></li>
{% endif %}
<li><a href="{% url 'go_logout' %}">Log Out</a></li>
{% else %}
<li><a href="{% url 'go_login' %}">Log In</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment