Fix MKWS-374.
authorMike Taylor <mike@indexdata.com>
Wed, 4 Feb 2015 11:54:18 +0000 (11:54 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 4 Feb 2015 11:54:18 +0000 (11:54 +0000)
Emit "No hits" instead of "Displaying: 1 to 0 of 0 (found: 0)" when no hits.

src/templates/pager.handlebars

index 0b3f953..16b29aa 100644 (file)
@@ -14,9 +14,13 @@ pages:
   click - script to go to this page unless it is the current one
 }}
 <div class="mkws-pager-desc">
   click - script to go to this page unless it is the current one
 }}
 <div class="mkws-pager-desc">
+ {{#if found}}
   <span>{{mkws-translate "Displaying"}}</span>:
   {{first}} <span>{{mkws-translate "to"}}</span> {{last}}
   <span>{{mkws-translate "of"}}</span> {{count}} (<span>{{{mkws-translate "found"}}}</span>: {{found}})
   <span>{{mkws-translate "Displaying"}}</span>:
   {{first}} <span>{{mkws-translate "to"}}</span> {{last}}
   <span>{{mkws-translate "of"}}</span> {{count}} (<span>{{{mkws-translate "found"}}}</span>: {{found}})
+ {{else}}
+  No hits.
+ {{/if}}
 </div>
 
 <div class="mkws-pager-list">
 </div>
 
 <div class="mkws-pager-list">