Author: david
Date: 2009-03-03 11:37:46 -0800 (Tue, 03 Mar 2009)
New Revision: 2094

Modified:
   trunk/qubit/apps/qubit/modules/term/templates/browseTaxonomySuccess.php
Log:
Switch browse/terms default sort order for results so that it sorts descending 
when you first click to sort by results.

Modified: 
trunk/qubit/apps/qubit/modules/term/templates/browseTaxonomySuccess.php
===================================================================
--- trunk/qubit/apps/qubit/modules/term/templates/browseTaxonomySuccess.php     
2009-03-03 19:36:07 UTC (rev 2093)
+++ trunk/qubit/apps/qubit/modules/term/templates/browseTaxonomySuccess.php     
2009-03-03 19:37:46 UTC (rev 2094)
@@ -18,15 +18,15 @@
       <span class="th-link"><?php echo link_to(__('add/edit'), 
'term/list?taxonomyId='.$taxonomy->getId()); ?></span>
     <?php endif; ?>
   </th><th>
+    <?php if ($sort == 'hitsDown'): ?>
+      <?php echo link_to(__('results'), 
'term/browse?taxonomyId='.$taxonomy->getId().'&sort=hitsUp') ?>
+      <?php echo image_tag('down.gif', 'style="padding-bottom: 3px;"', 'sort 
down') ?>
+    <?php else: ?>
+      <?php echo link_to(__('results'), 
'term/browse?taxonomyId='.$taxonomy->getId().'&sort=hitsDown') ?>
+    <?php endif; ?>
     <?php if ($sort == 'hitsUp'): ?>
-      <?php echo link_to(__('results'), 
'term/browse?taxonomyId='.$taxonomy->getId().'&sort=hitsDown') ?>
       <?php echo image_tag('up.gif', 'style="padding-bottom: 3px;"', 'sort 
up') ?>
-    <?php else: ?>
-      <?php echo link_to(__('results'), 
'term/browse?taxonomyId='.$taxonomy->getId().'&sort=hitsUp') ?>
     <?php endif; ?>
-    <?php if ($sort == 'hitsDown'): ?>
-      <?php echo image_tag('down.gif', 'style="padding-bottom: 3px;"', 'sort 
down') ?>
-    <?php endif; ?>
   </th>
 </tr></thead><tbody><?php foreach ($terms as $term): ?><tr>
   <td>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to