Author: david
Date: Thu Oct 22 14:34:17 2009
New Revision: 3800

Log:
Show 10 page links in generic pager.

Modified:
   trunk/apps/qubit/modules/default/templates/_pager.php

Modified: trunk/apps/qubit/modules/default/templates/_pager.php
==============================================================================
--- trunk/apps/qubit/modules/default/templates/_pager.php       Thu Oct 22 
14:28:12 2009        (r3799)
+++ trunk/apps/qubit/modules/default/templates/_pager.php       Thu Oct 22 
14:34:17 2009        (r3800)
@@ -5,7 +5,7 @@
       <?php echo link_to('< '.__('previous'), array('page' => 
$pager->getPage() - 1) + $sf_request->getParameterHolder()->getAll()) ?>
     <?php endif; ?>
 
-    <?php foreach ($pager->getLinks() as $page): ?>
+    <?php foreach ($pager->getLinks(10) as $page): ?>
       <?php if ($pager->getPage() == $page): ?>
         <strong><?php echo $page ?></strong>
       <?php else: ?>
@@ -25,5 +25,5 @@
     <?php echo __('displaying %1% to %2% of %3% results', array('%1%' => 
$pager->getFirstIndice(), '%2%' => $pager->getLastIndice(), '%3%' => 
$pager->getNbResults())) ?>
   <?php else: ?>
     <?php echo __('No results found'); ?>
-  <? endif; ?>  
+  <? endif; ?>
 </div>

--~--~---------~--~----~------------~-------~--~----~
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