Author: david
Date: Fri Oct 21 14:15:05 2011
New Revision: 10161
Log:
Abandon pager for printed search results
Modified:
trunk/apps/qubit/modules/search/templates/indexSuccess.php
trunk/css/print.css
Modified: trunk/apps/qubit/modules/search/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/indexSuccess.php Fri Oct 21
13:27:15 2011 (r10160)
+++ trunk/apps/qubit/modules/search/templates/indexSuccess.php Fri Oct 21
14:15:05 2011 (r10161)
@@ -22,17 +22,19 @@
</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)): ?>
- <div id="search-pager">
- <?php if ('print' != $sf_request->getGetParameter('media')): ?>
- <?php echo get_partial('search/searchResults', array('pager' => $pager)) ?>
- <?php echo get_partial('default/pager', array('pager' => $pager)) ?>
- <?php else: ?>
- <?php echo get_partial('default/pager', array('pager' => $pager)) ?>
+
<?php echo get_partial('search/searchResults', array('pager' => $pager)) ?>
- <?php endif; ?>
- </div>
+
+ <?php if ('print' != $sf_request->getGetParameter('media')): ?>
+ <?php echo get_partial('default/pager', array('pager' => $pager)) ?>
+ <?php endif; ?>
<?php endif; ?>
Modified: trunk/css/print.css
==============================================================================
--- trunk/css/print.css Fri Oct 21 13:27:15 2011 (r10160)
+++ trunk/css/print.css Fri Oct 21 14:15:05 2011 (r10161)
@@ -427,18 +427,6 @@
min-width: 8in;
}
-#search-pager .result-count
-{
- text-align: left;
- padding: 2px 4px;
- color: black;
-}
-
-#search-pager .pager
-{
- display: block;
-}
-
table.item-list img
{
float: left;
--
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.