summaryrefslogtreecommitdiff
path: root/project/templates/_menu_user.html
diff options
context:
space:
mode:
authorParth Buch2012-08-28 17:03:37 +0530
committerParth Buch2012-08-28 17:03:37 +0530
commit7e38fd922a8dd4742d09758cd1c94fb0302045d3 (patch)
treeb43d6ea8c47fb80e09e5e0bfd8759ac7d697addf /project/templates/_menu_user.html
downloadscipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.tar.gz
scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.tar.bz2
scipywebsite-7e38fd922a8dd4742d09758cd1c94fb0302045d3.zip
Reboot for scipy 2012
Diffstat (limited to 'project/templates/_menu_user.html')
-rw-r--r--project/templates/_menu_user.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/project/templates/_menu_user.html b/project/templates/_menu_user.html
new file mode 100644
index 0000000..2b562d8
--- /dev/null
+++ b/project/templates/_menu_user.html
@@ -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="/{{params.scope }}/account/">My profile</a> |
+
+ {% if user.is_superuser %}
+ <a href="/admin/">Administer</a> |
+ {% endif %}
+
+ <a href="/{{params.scope }}/logout/">Logout</a>
+ {% else %}
+ <a href="/{{params.scope }}/login/">Login</a>
+ {% endif %}
+</div>