]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/questions.html
convertd comments to nodes
[osqa.git] / forum / skins / default / templates / questions.html
1 {% extends "base.html" %}\r
2 <!-- questions.html -->\r
3 {% load question_list_tags %}\r
4 {% load i18n %}\r
5 {% load extra_tags %}\r
6 \r
7 {% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %}\r
8 {% block forejs %}\r
9        <script type="text/javascript">\r
10            var tags = {{ tags_autocomplete|safe }};\r
11            $().ready(function(){\r
12                var tab_id = "{{ tab_id }}";\r
13                $("#"+tab_id).attr('className',"on");\r
14                var on_tab = {% if is_unanswered %}'#nav_unanswered'{% else %}'#nav_questions'{% endif %};\r
15                $(on_tab).attr('className','on');\r
16                Hilite.exact = false;\r
17                Hilite.elementid = "listA";\r
18                Hilite.debug_referrer = location.href;\r
19            });\r
20        </script>\r
21 {% endblock %}\r
22 {% block content %}\r
23 <div class="tabBar">\r
24     {% question_list_title %}\r
25     {% question_sort_tabs sort_context %}\r
26 </div>\r
27 <div id="listA">{% for question in questions %}\r
28     {% question_list_item question %}\r
29 {% endfor %}</div>\r
30 {% endblock %}\r
31 \r
32 {% block tail %}\r
33     <div class="pager">{% cnprog_paginator pagination_context %}</div>\r
34     <div class="pagesize">{% cnprog_pagesize pagination_context %}</div>\r
35 {% endblock %}\r
36 \r
37 {% block sidebar %}\r
38     {% question_list_count %}\r
39     {% tag_selector %}\r
40     {% question_list_related_tags questions %}\r
41 {% endblock %}\r
42 <!-- end questions.html -->\r