Author: sevein
Date: Sun Oct 11 09:25:42 2009
New Revision: 3723

Log:
Add "no results found" message in search/recentUpdates and term/listTaxonomy 
pager templates.

Modified:
   trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php
   trunk/apps/qubit/modules/term/templates/listTaxonomySuccess.php

Modified: trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php  Sun Oct 
11 00:02:27 2009        (r3722)
+++ trunk/apps/qubit/modules/search/templates/recentUpdatesSuccess.php  Sun Oct 
11 09:25:42 2009        (r3723)
@@ -77,5 +77,9 @@
 <?php endif; ?>
 
 <div class="result-count">
-<?php echo __('displaying %1% to %2% of %3% results', array('%1%' => 
$pager->getFirstIndice(), '%2%' => $pager->getLastIndice(), '%3%' => 
$pager->getNbResults())) ?>
+  <?php if (0 < $pager->getNbResults()): ?>
+    <?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; ?>  
 </div>

Modified: trunk/apps/qubit/modules/term/templates/listTaxonomySuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/listTaxonomySuccess.php     Sun Oct 
11 00:02:27 2009        (r3722)
+++ trunk/apps/qubit/modules/term/templates/listTaxonomySuccess.php     Sun Oct 
11 09:25:42 2009        (r3723)
@@ -56,7 +56,11 @@
 <?php endif; ?>
 
 <div class="result-count">
-<?php echo __('displaying %1% to %2% of %3% results', array('%1%' => 
$hitlist->getFirstIndice(), '%2%' => $hitlist->getLastIndice(), '%3%' => 
$hitlist->getNbResults())) ?>
+  <?php if (0 < $hitlist->getNbResults()): ?>
+    <?php echo __('displaying %1% to %2% of %3% results', array('%1%' => 
$hitlist->getFirstIndice(), '%2%' => $hitlist->getLastIndice(), '%3%' => 
$hitlist->getNbResults())) ?>
+  <?php else: ?>
+    <?php echo __('No results found'); ?>
+  <? endif; ?>  
 </div>
 
 <?php if ($editCredentials): ?>

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