]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/djstyle_base.html
be able to control right navigation visibility in the administration interface
[osqa.git] / forum / skins / default / templates / osqaadmin / djstyle_base.html
index 3527dc1d5cecd2797d2aedcd4aaf251922321c69..2f771921d2267c5ab26c711797fa1d0c44229aa7 100644 (file)
@@ -43,7 +43,7 @@
             {% block pagename %}{% endblock %} - 
             {% block description %}{% endblock %}
         </div>
-        <div id="content" class="{% if hide_menu %}flex{% else %}colMS{% endif %}">
+        <div id="content" class="{% if hide_navigation %}flex{% else %}colMS{% endif %}">
             <div id="content-main">
             {% autoescape off %}
                 {% for message in user_messages %}
@@ -52,7 +52,9 @@
             {% endautoescape %}
                 {% block admincontent %}{% endblock %}
             </div>
-            {% if not hide_menu %}
+            {% if hide_navigation %}
+
+            {% else %}
             <div id="content-related">
                 {% if unsaved %}
                 <div id="changes-box" class="module">
                     <ul>
                         <li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>
                         <li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>
-                        {% for name,tool in tools.items %}
-                            <li><a href="{% url admin_tools name %}">{{ tool.label }}</a></li>
+                        {% for name,tool in tools %}
+                            <li><a href="{% url admin_tools name %}">{{ tool }}</a></li>
                         {% endfor %}
                     </ul>
                 </div>