From 80f9b0badde3924575c4097bf914afef3fce72e7 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 25 Jan 2012 11:35:23 +0000 Subject: [PATCH] be able to control right navigation visibility in the administration interface git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1223 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/templates/osqaadmin/base.html | 4 +++- forum/skins/default/templates/osqaadmin/djstyle_base.html | 6 ++++-- forum/views/admin.py | 6 +++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/forum/skins/default/templates/osqaadmin/base.html b/forum/skins/default/templates/osqaadmin/base.html index ff862c9..d27b216 100644 --- a/forum/skins/default/templates/osqaadmin/base.html +++ b/forum/skins/default/templates/osqaadmin/base.html @@ -24,7 +24,9 @@ {% endblock %} {% block sidebar %} - {% if user.is_superuser %} + {% if hide_navigation %} + + {% else %}
{% trans "Switch to django style interface" %}

{% trans "Administration menu" %}

diff --git a/forum/skins/default/templates/osqaadmin/djstyle_base.html b/forum/skins/default/templates/osqaadmin/djstyle_base.html index 25c4be0..2f77192 100644 --- a/forum/skins/default/templates/osqaadmin/djstyle_base.html +++ b/forum/skins/default/templates/osqaadmin/djstyle_base.html @@ -43,7 +43,7 @@ {% block pagename %}{% endblock %} - {% block description %}{% endblock %}
-
+
{% autoescape off %} {% for message in user_messages %} @@ -52,7 +52,9 @@ {% endautoescape %} {% block admincontent %}{% endblock %}
- {% if not hide_menu %} + {% if hide_navigation %} + + {% else %}