diff options
author | Kabir Kukreti <kabir@gnowledge.org> | 2012-03-21 15:13:37 +0530 |
---|---|---|
committer | Kabir Kukreti <kabir@gnowledge.org> | 2012-03-21 15:13:37 +0530 |
commit | a65ec2f214c96cb537a101f96998d87a9e681991 (patch) | |
tree | c87e050c53dbf143eef75edda1b990c258c3c8eb /gstudio/templates/gstudio | |
parent | 7264ef6355baa26d72c6127e5fe8d1e623837204 (diff) | |
download | gnowsys-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.html | 7 |
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 %} |