]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/index.html
merging jambazov > trunk
[osqa.git] / forum / skins / default / templates / index.html
index 901c4095e6a2ba36675821a56e3c915132f32efb..94552e60490184e8a83b847fc40643cdb6a5ac1d 100644 (file)
@@ -2,15 +2,29 @@
 <!-- index.html -->\r
 {% load general_sidebar_tags %}\r
 {% load question_list_tags %}\r
-{% load cache %}\r
-\r
+{% load i18n %}\r
+{% block fulltitle %}{{ settings.APP_TITLE }}{% endblock %}\r
 {% block sidebar %}\r
-{% cache 60 index_sidebar settings.APP_URL %}\r
-    {% question_list_count %}\r
-    {% tag_selector %}\r
+    {% if not request.user.is_authenticated %}\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
+    {% include "question_list/count.html" %}\r
+    {% sidebar_upper %}\r
+    {% if request.user.is_authenticated %}\r
+        {% tag_selector %}\r
+    {% endif %}\r
+    {% sidebar_lower %}\r
     {% recent_tags %}\r
     {% recent_awards %}\r
-{% endcache %}\r
 {% endblock %}\r
 <!-- index.html -->\r
 \r