diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/navbar.html	Sat Dec 03 02:48:18 2011 +0000
@@ -0,0 +1,14 @@
+{% 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>