From eb29a7eb85ebf181e2bbfe24740338b4c28882cc Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 4 Feb 2015 11:54:18 +0000 Subject: [PATCH] Fix MKWS-374. Emit "No hits" instead of "Displaying: 1 to 0 of 0 (found: 0)" when no hits. --- src/templates/pager.handlebars | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/templates/pager.handlebars b/src/templates/pager.handlebars index 0b3f953..16b29aa 100644 --- a/src/templates/pager.handlebars +++ b/src/templates/pager.handlebars @@ -14,9 +14,13 @@ pages: click - script to go to this page unless it is the current one }}
+ {{#if found}} {{mkws-translate "Displaying"}}: {{first}} {{mkws-translate "to"}} {{last}} {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}}) + {{else}} + No hits. + {{/if}}
-- 1.7.10.4