X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/617e60be3c7d2e0f17639f3487a721d4efdc02c0..094acc5f44c3a7779f42b3d84c86213ba6a1003c:/forum/skins/default/templates/question.html?ds=sidebyside diff --git a/forum/skins/default/templates/question.html b/forum/skins/default/templates/question.html index 694ab71..430a304 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 %} @@ -63,7 +64,7 @@
- +
@@ -98,9 +99,7 @@ {% if question.nis.closed %}

- {% blocktrans with question.nstate.closed.extra as close_reason %} - The question has been closed for the following reason "{{ close_reason }}" by - {% endblocktrans %} + {% blocktrans with question.nstate.closed.extra as close_reason %}The question has been closed for the following reason "{{ close_reason }}" by{% endblocktrans %} {{ question.nstate.closed.by.username }} {% diff_date question.nstate.closed.at %}

@@ -111,26 +110,15 @@
- {% blocktrans count answers|length as counter %} - One Answer: - {% plural %} - {{counter}} Answers: - {% endblocktrans %} -
-
- {% trans "oldest answers" %} - {% trans "newest answers" %} - {% trans "popular answers" %} + {% blocktrans count answers.paginator.count as counter %}One Answer:{% plural %}{{counter}} Answers:{% endblocktrans %}
+ {{ answers.paginator.sort_tabs }}
- {% cnprog_paginator context %} + {{ answers.paginator.page_numbers }} - {% for answer in answers %} + {% for answer in answers.paginator.page %} -
+
@@ -159,7 +147,7 @@ {% endfor %}
- {% cnprog_paginator context %} + {{ answers.paginator.page_numbers }}
{% endif %}
@@ -178,6 +166,7 @@ {% endspaceless %} + {% comment %} {% if not request.user.is_authenticated %}
{% trans "You can answer anonymously and then login." %}
{% else %} @@ -193,6 +182,7 @@ {% endif %}

{% endif %} + {% endcomment %}