Mercurial > public > sg101
view gpp/templates/navbar.html @ 500:886cc99e8406
For #240, add an "ajaxy" login via a jQuery UI pop-up dialog to streamline the login process.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Dec 2011 02:48:18 +0000 |
parents | |
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>