Author: david
Date: Fri Oct 21 14:16:40 2011
New Revision: 10162
Log:
Move search-stats dif to _searchResults partial
Modified:
trunk/apps/qubit/modules/search/templates/_searchResults.php
trunk/apps/qubit/modules/search/templates/indexSuccess.php
Modified: trunk/apps/qubit/modules/search/templates/_searchResults.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/_searchResults.php Fri Oct
21 14:15:05 2011 (r10161)
+++ trunk/apps/qubit/modules/search/templates/_searchResults.php Fri Oct
21 14:16:40 2011 (r10162)
@@ -1,3 +1,9 @@
+<div id="search-stats">
+ <?php echo __('Found %1% results in %2% seconds', array(
+ '%1%' => count($pager->hits),
+ '%2%' => $timer->elapsed())) ?>
+</div>
+
<div class="section">
<?php foreach ($pager->getResults() as $hit): ?>
<?php $doc = $hit->getDocument(); ?>
Modified: trunk/apps/qubit/modules/search/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/indexSuccess.php Fri Oct 21
14:15:05 2011 (r10161)
+++ trunk/apps/qubit/modules/search/templates/indexSuccess.php Fri Oct 21
14:16:40 2011 (r10162)
@@ -22,15 +22,9 @@
</div>
<?php else: ?>
- <div id="search-stats">
- <?php echo __('Found %1% results in %2% seconds', array(
- '%1%' => count($pager->hits),
- '%2%' => $timer->elapsed())) ?>
- </div>
-
<?php if (isset($pager)): ?>
- <?php echo get_partial('search/searchResults', array('pager' => $pager)) ?>
+ <?php echo get_partial('search/searchResults', array('pager' => $pager,
'timer' => $timer)) ?>
<?php if ('print' != $sf_request->getGetParameter('media')): ?>
<?php echo get_partial('default/pager', array('pager' => $pager)) ?>
--
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.com/group/qubit-commits?hl=en.