From 42fc66b154f719a3e55a8dff942bf0c381af896f Mon Sep 17 00:00:00 2001 From: qw3rty Date: Tue, 18 May 2010 18:21:42 +0000 Subject: [PATCH] made it so that when you are searching questions the questions tab is highlighted git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@301 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/views/readers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forum/views/readers.py b/forum/views/readers.py index 9eea978..b865fbb 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -97,7 +97,7 @@ def question_list(request, initial, list_description=_('questions'), sort=None, answer_count = Answer.objects.filter(deleted=None, parent__in=questions).count() answer_description = _("answers") - + return { "questions" : questions, "questions_count" : questions.count(), @@ -108,6 +108,7 @@ def question_list(request, initial, list_description=_('questions'), sort=None, "answer_description": answer_description, "base_path" : base_path, "page_title" : page_title, + "tab" : "questions", } -- 2.39.5