]> git.openstreetmap.org Git - osqa.git/commitdiff
osqa - 235
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 12 May 2010 22:36:59 +0000 (22:36 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 12 May 2010 22:36:59 +0000 (22:36 +0000)
add an option to show or not show the welcome box on the index page.

git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@243 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/index.html

index 0e24806957f37152ff591b911f7e921d6a36f1d1..3c145ef24f259370117c5ac4ea26e8dcb20a8dea 100644 (file)
@@ -6,14 +6,16 @@
 {% block fulltitle %}{{ settings.APP_TITLE }}{% endblock %}\r
 {% block sidebar %}\r
     {% if not request.user.is_authenticated %}\r
-    <div class="boxA">\r
-        <h3>{% trans "welcome to " %}{{ settings.APP_SHORT_NAME }}</h3>\r
-        <div class="body">\r
-          {{ settings.APP_INTRO|safe }}\r
-          <div class="more"><a href="{% url about %}">{% trans "about" %} </a></div>\r
-          <div class="more"><a href="{% url faq %}">{% trans "faq" %} </a></div>\r
-        </div>\r
-    </div>\r
+        {% if settings.SHOW_WELCOME_BOX %}\r
+            <div class="boxA">\r
+                <h3>{% trans "welcome to " %}{{ settings.APP_SHORT_NAME }}</h3>\r
+                <div class="body">\r
+                  {{ settings.APP_INTRO|safe }}\r
+                  <div class="more"><a href="{% url about %}">{% trans "about" %} </a></div>\r
+                  <div class="more"><a href="{% url faq %}">{% trans "faq" %} </a></div>\r
+                </div>\r
+            </div>\r
+        {% endif %}\r
     {% endif %}\r
     {% question_list_count %}\r
     {% sidebar_upper %}\r