X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/617e60be3c7d2e0f17639f3487a721d4efdc02c0..5d21f5d218e4214ca88ab5e89cd1e2ae30e6b0a8:/forum/skins/default/templates/question.html diff --git a/forum/skins/default/templates/question.html b/forum/skins/default/templates/question.html index 694ab71..4d5ff09 100644 --- a/forum/skins/default/templates/question.html +++ b/forum/skins/default/templates/question.html @@ -13,6 +13,7 @@ {% block title %}{% spaceless %}{{ question.headline }}{% endspaceless %}{% endblock %} {% block forejs %} + {% if not question.nis.closed %} @@ -111,24 +112,17 @@
- {% blocktrans count answers|length as counter %} + {% blocktrans count answers.paginator.count as counter %} One Answer: {% plural %} {{counter}} Answers: {% endblocktrans %}
-
- {% trans "oldest answers" %} - {% trans "newest answers" %} - {% trans "popular answers" %} -
+ {{ answers.paginator.sort_tabs }}
- {% cnprog_paginator context %} + {{ answers.paginator.page_numbers }} - {% for answer in answers %} + {% for answer in answers.paginator.page %}
@@ -159,7 +153,7 @@ {% endfor %}
- {% cnprog_paginator context %} + {{ answers.paginator.page_numbers }}
{% endif %} @@ -178,6 +172,7 @@ {% endspaceless %} + {% comment %} {% if not request.user.is_authenticated %}
{% trans "You can answer anonymously and then login." %}
{% else %} @@ -193,6 +188,7 @@ {% endif %}

{% endif %} + {% endcomment %}