summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/skins/default/templates/question/answer_tab_bar.html2
-rw-r--r--askbot/views/readers.py1
2 files changed, 2 insertions, 1 deletions
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 @@
<div class="tabBar tabBar-answer">
<h2 id="questionCount">
- {% 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