]> git.openstreetmap.org Git - osqa.git/commitdiff
switch to a default sort of active, and "pushed" the active tab to the beggining
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Apr 2010 23:26:44 +0000 (23:26 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Apr 2010 23:26:44 +0000 (23:26 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@43 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/question_list/sort_tabs.html
forum/views/readers.py

index b8f714da27efa560a33d34b2c14069f531529443..b170549d50323e81b548e52493ecb8303f347cc2 100644 (file)
@@ -1,8 +1,8 @@
 {% load i18n %}\r
 \r
 <div class="tabsA">\r
-    <a id="latest" href="{{ base_url }}latest"{% ifequal current "latest" %} class="on"{% endifequal %} title="{% trans "most recently asked questions" %}">{% trans "newest" %}</a>\r
     <a id="active" href="{{ base_url }}active"{% ifequal current "active" %} class="on"{% endifequal %} title="{% trans "most recently updated questions" %}">{% trans "active" %}</a>\r
+    <a id="latest" href="{{ base_url }}latest"{% ifequal current "latest" %} class="on"{% endifequal %} title="{% trans "most recently asked questions" %}">{% trans "newest" %}</a>\r
     <a id="hottest" href="{{ base_url }}hottest"{% ifequal current "hottest" %} class="on"{% endifequal %} title="{% trans "hottest questions" %}">{% trans "hottest" %}</a>\r
     <a id="mostvoted" href="{{ base_url }}mostvoted"{% ifequal current "mostvoted" %} class="on"{% endifequal %} title="{% trans "most voted questions" %}">{% trans "most voted" %}</a>\r
 </div>
\ No newline at end of file
index b260343d19e97e6b79e51b13f73c27a1cbb59263..afe24bbb19c6bdd87bb75a55f819eae3418c1934 100644 (file)
@@ -56,7 +56,7 @@ def _get_tags_cache_json():#service routine used by views requiring tag list in
 
 @decorators.render('index.html')
 def index(request):
-    return question_list(request, Question.objects.all(), sort='latest', base_path=reverse('questions'))
+    return question_list(request, Question.objects.all(), sort='active', base_path=reverse('questions'))
 
 @decorators.render('questions.html', 'unanswered')
 def unanswered(request):