X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/b885b2a795c839540f299a7e5f33ed4b670101ab..4666ba35b4a230b00a2c82794d6fafde07eb4d0f:/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 cf347ed..dbb45eb 100644 --- a/forum/skins/default/templates/question_list/count.html +++ b/forum/skins/default/templates/question_list/count.html @@ -1,15 +1,18 @@ -{% load i18n %} -{% load humanize %} +{% spaceless %} +{% load i18n humanize extra_tags %} +{% declare %} + answer_count = questions.children_count('answer') +{% enddeclare %}
- {{ questions_count }}{{ list_description }} + {{ questions.paginator.count }}{{ list_description }}
{% if answer_count %}
- {{ answer_count }}{{ answer_description }} + {{ answer_count }}{% trans "answers" %}
{% endif %} @@ -19,4 +22,5 @@ {{ questions.paginator.sort_description }}

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