project/templates/_menu_user.html
changeset 1 fda1c66b25f9
child 96 178b89a3ca4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/_menu_user.html	Fri Oct 30 15:09:12 2009 +0530
@@ -0,0 +1,19 @@
+<div id="menu-user">
+    {% if user.is_authenticated %}
+        {% if user.get_full_name %}
+        <strong>{{ user.get_full_name }} &lt;{{ user.username }}&gt;</strong>
+        {% else %}
+            <strong>{{ user.username }}</strong>
+        {% endif %} |
+
+        <a href="{% url kiwipycon_account %}">My profile</a> |
+
+        {% if user.is_superuser %}
+                <a href="/admin/">Administer</a> |
+        {% endif %}
+
+        <a href="{% url kiwipycon_logout %}">Logout</a>
+    {% else %}
+        <a href="{% url kiwipycon_login %}">Login</a>
+    {% endif %}
+</div>