From 534082ff4c052dca8145717330ee17431bf25a94 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Mon, 5 Mar 2012 17:33:08 -0300 Subject: fixed the answer count in the question page --- askbot/skins/default/templates/question/answer_tab_bar.html | 2 +- askbot/views/readers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/askbot/skins/default/templates/question/answer_tab_bar.html b/askbot/skins/default/templates/question/answer_tab_bar.html index 632c0cf2..bebf68b8 100644 --- a/askbot/skins/default/templates/question/answer_tab_bar.html +++ b/askbot/skins/default/templates/question/answer_tab_bar.html @@ -1,6 +1,6 @@

- {% trans counter=answers|length %} + {% trans counter=answer_count %} {{counter}} Answer {% pluralize %} {{counter}} Answers diff --git a/askbot/views/readers.py b/askbot/views/readers.py index 6ad69aa3..5ff7889d 100644 --- a/askbot/views/readers.py +++ b/askbot/views/readers.py @@ -533,6 +533,7 @@ def question(request, id):#refactor - long subroutine. display question body, an 'thread': thread, 'answer' : answer_form, 'answers' : page_objects.object_list, + 'answer_count': len(answers), 'user_votes': user_votes, 'user_post_id_list': user_post_id_list, 'user_can_post_comment': user_can_post_comment,#in general -- cgit v1.2.3-1-g7c22