X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a1d7178d4815eb368d905a35a011200c39692ae9..7be81dfc799101c3d7e646d76b07ac30fc39bf61:/forum/skins/default/templates/question_list/count.html diff --git a/forum/skins/default/templates/question_list/count.html b/forum/skins/default/templates/question_list/count.html index 535a829..1e806dd 100644 --- a/forum/skins/default/templates/question_list/count.html +++ b/forum/skins/default/templates/question_list/count.html @@ -1,22 +1,26 @@ -{% load i18n %} -{% load humanize %} - -
-
- {{ questions_count }}{{ list_description }} -
- - - {% if answer_count %} -
- {{ answer_count }}{{ answer_description }} -
- - {% endif %} - -
-

- {{ sort_description|safe }} -

-
-
\ No newline at end of file +{% spaceless %} +{% load i18n humanize extra_tags %} +{% declare %} + answer_count = questions.children_count('answer') +{% enddeclare %} + +
+
+ {{ questions.paginator.count }}{{ list_description }} +
+ + + {% if answer_count %} +
+ {{ answer_count }}{% trans "answers" %} +
+ + {% endif %} + +
+

+ {{ questions.paginator.sort_description }} +

+
+
+{% endspaceless %} \ No newline at end of file