Mercurial > public > sg101
view gpp/templates/navbar.html @ 517:666147a2cc08
Moved the imports from the top of the file into the task function. This seemed to prevent some strange import errors that only occurred on the production server. I don't know if the problems were related to mod_wsgi or Python 2.5 or what.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 15 Dec 2011 02:49:16 +0000 |
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>