summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio
diff options
context:
space:
mode:
authorKabir Kukreti <kabir@gnowledge.org>2012-03-21 15:13:37 +0530
committerKabir Kukreti <kabir@gnowledge.org>2012-03-21 15:13:37 +0530
commita65ec2f214c96cb537a101f96998d87a9e681991 (patch)
treec87e050c53dbf143eef75edda1b990c258c3c8eb /gstudio/templates/gstudio
parent7264ef6355baa26d72c6127e5fe8d1e623837204 (diff)
downloadgnowsys-a65ec2f214c96cb537a101f96998d87a9e681991.tar.gz
Authentication bug in forms fixed.User dashboard fixed to include my dashboard for admin
Diffstat (limited to 'gstudio/templates/gstudio')
-rw-r--r--gstudio/templates/gstudio/_header.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html
index 5106179..f1f21d1 100644
--- a/gstudio/templates/gstudio/_header.html
+++ b/gstudio/templates/gstudio/_header.html
@@ -9,11 +9,12 @@
grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %}
| <a href="/">Home</a>
| <a href="{{ get_absolute_url }}/objects">objects</a>
+
{% if user.is_authenticated %}
- {% if user.is_staff%}
+ | <a href="{{ get_absolute_url }}/gstudio/userdashboard">My Dashboard</a>
+ {% if user.is_staff %}
| <a href="{{ get_absolute_url }}/admin">Admin Dashboard</a>
- {% else %}
- | <a href="{{ get_absolute_url }}/gstudio/userdashboard">My Dashboard</a>
+
{% endif %}
{% endif %}