From: jordan Date: Wed, 25 Jan 2012 11:35:23 +0000 (+0000) Subject: be able to control right navigation visibility in the administration interface X-Git-Tag: live~94 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/80f9b0badde3924575c4097bf914afef3fce72e7 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 --- 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 %}