view gpp/templates/navbar.html @ 564:e5d3552d4ad0

The ajax login didn't work from the register page. I think this is because there are two input boxes with the same ID in this situation. Renamed the ajax login form's ID's to make them unique.
author Brian Neal <bgneal@gmail.com>
date Mon, 13 Feb 2012 19:34:29 -0600
parents 886cc99e8406
children
line wrap: on
line source
{% load url from future %}
{% load messages_tags %}
<ul>
   {% if user.is_authenticated %}
   <li>Welcome, <a href="{% url 'bio-me' %}">{{ user.username }}</a></li>
   <li><a href="{% url 'forums-index' %}">Forums</a></li>
   <li>{% unread_messages user %}</li>
   <li><a href="{% url 'haystack_search' %}">Search</a></li>
   <li><a href="{% url 'accounts-logout' %}">Logout</a></li>
   {% else %}
   <li><a id="login-link" href="{% url 'accounts-login' %}">Login</a></li>
   <li><a href="{% url 'accounts-register' %}">Register</a></li>
   {% endif %}
</ul>