]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_list/count.html
Remove DJANGO_VERSION from the recommended settings
[osqa.git] / forum / skins / default / templates / question_list / count.html
index cf347ed16a09929f9af342f9c8af016f4852084f..dbb45eb8ed70af83747eb4c6a598c68dc016cb27 100644 (file)
@@ -1,15 +1,18 @@
-{% load i18n %}\r
-{% load humanize %}\r
+{% spaceless %}\r
+{% load i18n humanize extra_tags %}\r
+{% declare %}\r
+    answer_count = questions.children_count('answer')\r
+{% enddeclare %}\r
 \r
 <div class="boxC">\r
     <div class="questions-count">\r
-        {{ questions_count }}<span style="color:black;font-size:14px;margin-left:5px">{{ list_description }}</span>\r
+        {{ questions.paginator.count }}<span style="color:black;font-size:14px;margin-left:5px">{{ list_description }}</span>\r
     </div>\r
 \r
 \r
     {% if answer_count %}\r
     <div class="questions-count">\r
-        {{ answer_count }}<span style="color:black;font-size:14px;margin-left:5px">{{ answer_description }}</span>\r
+        {{ answer_count }}<span style="color:black;font-size:14px;margin-left:5px">{% trans "answers" %}</span>\r
     </div>\r
 \r
     {% endif %}\r
@@ -19,4 +22,5 @@
             {{ questions.paginator.sort_description }}\r
         </p>\r
     </div>\r
-</div>
\ No newline at end of file
+</div>\r
+{% endspaceless %}
\ No newline at end of file