]> git.openstreetmap.org Git - osqa.git/commitdiff
made it so that when you are searching questions the questions tab is highlighted
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 18 May 2010 18:21:42 +0000 (18:21 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 18 May 2010 18:21:42 +0000 (18:21 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@301 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/readers.py

index 9eea9787191bb24472cd4ef6410f77649b52a6c2..b865fbb0dc2b91f9ddef69b6928b66e698c5ac8f 100644 (file)
@@ -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",
         }