diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-05 17:33:08 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-05 17:33:08 -0300 |
commit | 534082ff4c052dca8145717330ee17431bf25a94 (patch) | |
tree | 64e57892217930a852f72a72b38f7803a4a254a2 | |
parent | 176553fb823b0748ad513a88a444376fd58d7cb6 (diff) | |
download | askbot-534082ff4c052dca8145717330ee17431bf25a94.tar.gz askbot-534082ff4c052dca8145717330ee17431bf25a94.tar.bz2 askbot-534082ff4c052dca8145717330ee17431bf25a94.zip |
fixed the answer count in the question page
-rw-r--r-- | askbot/skins/default/templates/question/answer_tab_bar.html | 2 | ||||
-rw-r--r-- | askbot/views/readers.py | 1 |
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 |