-{% extends "base.html" %}\r
-<!-- questions.html -->\r
-{% load question_list_tags %}\r
-{% load i18n %}\r
-{% load extra_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
-{% endblock %}\r
-{% block content %}\r
-<div class="tabBar">\r
- {% question_list_title %}\r
- {% question_sort_tabs sort_context %}\r
-</div>\r
-<div id="listA">\r
-{% for question in questions %}\r
- {% question_list_item question %}\r
-{% endfor %}\r
-</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
-{% endblock %}\r
-\r
-{% block sidebar %}\r
- {% question_list_count %}\r
- {% tag_selector %}\r
- {% question_list_related_tags questions %}\r
-{% endblock %}\r
-<!-- end questions.html -->\r
+{% extends "base.html" %}
+<!-- questions.html -->
+{% load question_list_tags %}
+{% load i18n %}
+{% load extra_tags %}
+{% load general_sidebar_tags %}
+
+{% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}
+
+{% block metadescription %}{% spaceless %}
+ {% if tag %}
+ {% blocktrans with settings.APP_TITLE as app_title %}Questions and answers about {{ tag }} on {{ app_title }}{% endblocktrans %}
+ {% endif %}
+{% endspaceless %}{% endblock %}
+
+{% block meta %}
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ feed_url }}" />
+{% endblock %}
+
+{% block content %}
+
+<div class="tabBar">
+ {% include "question_list/title.html" %}
+ <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>
+ {{ questions.paginator.sort_tabs }}
+</div>
+<div id="listA">{% for question in questions.paginator.page %}
+ {% if show_summary %}
+ {% question_list_item question question_summary=yes %}
+ {% else %}
+ {% question_list_item question %}
+ {% endif %}
+{% endfor %}</div>
+{% endblock %}
+
+{% block tail %}
+ <div class="pager">{{ questions.paginator.page_numbers }}</div>
+ <div class="pagesize">{{ questions.paginator.page_sizes }}</div>
+{% endblock %}
+
+{% block sidebar %}
+ {% include "question_list/count.html" %}
+ {% sidebar_upper %}
+ {% tag_selector %}
+ {% sidebar_lower %}
+ {% question_list_related_tags questions.paginator.page %}
+
+{% endblock %}
+<!-- end questions.html -->