]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/questions.html
make sure that we pre-wrap the lines of code in the markdown code blocks
[osqa.git] / forum / skins / default / templates / questions.html
index ef7df5898610c2113354579d98f23f4b5c2e2842..8d4ee0ad63fa0160598273a336a8e05c02e2c19f 100644 (file)
@@ -3,42 +3,37 @@
 {% load question_list_tags %}\r
 {% load i18n %}\r
 {% load extra_tags %}\r
+{% load general_sidebar_tags %}\r
 \r
-{% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %}\r
-{% block forejs %}\r
-       <script type="text/javascript">\r
-           var tags = {{ tags_autocomplete|safe }};\r
-           $().ready(function(){\r
-               var tab_id = "{{ tab_id }}";\r
-               $("#"+tab_id).attr('className',"on");\r
-               var on_tab = {% if is_unanswered %}'#nav_unanswered'{% else %}'#nav_questions'{% endif %};\r
-               $(on_tab).attr('className','on');\r
-               Hilite.exact = false;\r
-               Hilite.elementid = "listA";\r
-               Hilite.debug_referrer = location.href;\r
-           });\r
-       </script>\r
+{% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}\r
+\r
+{% block meta %}\r
+    <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ feed_url }}" />\r
 {% endblock %}\r
+\r
 {% block content %}\r
+\r
 <div class="tabBar">\r
-    {% question_list_title %}\r
-    {% question_sort_tabs sort_context %}\r
+    {% include "question_list/title.html" %}\r
+    <a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');" href="{{ feed_url }}" title="{% trans "subscribe to question RSS feed" %}"></a>\r
+    {{ questions.paginator.sort_tabs }}\r
 </div>\r
-<div id="listA">\r
-{% for question in questions %}\r
+<div id="listA">{% for question in questions.paginator.page %}\r
     {% question_list_item question %}\r
-{% endfor %}\r
-</div>\r
+{% endfor %}</div>\r
 {% endblock %}\r
 \r
 {% block tail %}\r
-    <div class="pager">{% cnprog_paginator pagination_context %}</div>\r
-    <div class="pagesize">{% cnprog_pagesize pagination_context %}</div>\r
+    <div class="pager">{{ questions.paginator.page_numbers }}</div>\r
+    <div class="pagesize">{{ questions.paginator.page_sizes }}</div>\r
 {% endblock %}\r
 \r
 {% block sidebar %}\r
-    {% question_list_count %}\r
+    {% include "question_list/count.html" %}\r
+    {% sidebar_upper %}\r
     {% tag_selector %}\r
-    {% question_list_related_tags questions %}\r
+    {% sidebar_lower %}\r
+    {% question_list_related_tags questions.paginator.page %}\r
+\r
 {% endblock %}\r
 <!-- end questions.html -->\r