Commit d8743657 authored by Ben Waters's avatar Ben Waters

lets do this the other way

parent 3b7a8208
......@@ -12,10 +12,10 @@
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Search</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'django.contrib.auth.views.logout' %}">Logout</a></li>
{% else %}
{% if user.is_anonymous %}
<li><a href="{% url 'django.contrib.auth.views.login' %}">Log In</a></li>
{% else %}
<li><a href="{% url 'django.contrib.auth.views.logout' %}">Logout</a></li>
{% endif %}
</ul>
</div><!--/.nav-collapse -->
......
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