X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftemplates%2Fpager.handlebars;h=e35dae29bde625fc42ae2571dbeccba6b7113f41;hb=6bdc28a3072c622e756f0377f375ae64c5492ff8;hp=ad93f741e4ed41af686e1abb4cdd54bac1fbdc0c;hpb=cfcf5d76502e44308d80004a9735268fde74381f;p=mkws-moved-to-github.git diff --git a/src/templates/pager.handlebars b/src/templates/pager.handlebars index ad93f74..e35dae2 100644 --- a/src/templates/pager.handlebars +++ b/src/templates/pager.handlebars @@ -1,8 +1,8 @@ {{! Pager -nextClick - handler script for "next" button, only available if there is a next page -prevClick - handler script for "previous" button if there is a previous page +nextHref - link for "next" button, only available if there is a next page +prevHref - link for "previous" button if there is a previous page moreNext - indicates there are more pages following those displayed morePrev - indicates there are more pages preceding first - first record displayed @@ -11,26 +11,30 @@ count - number of records available found - number of records found pages: number - page number - click - script to go to this page unless it is the current one + href - link to this page unless it is the current one }}
- {{mkws-translate "Displaying"}}: - {{first}} {{mkws-translate "to"}} {{last}} - {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}}) + {{#if found}} + {{mkws-translate "Displaying"}}: + {{first}} {{mkws-translate "to"}} {{last}} + {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}}) + {{else}} + No hits. + {{/if}}
- {{#if prevClick}} - << {{{mkws-translate "Prev"}}} | + {{#if prevHref}} + {{{mkws-translate "Prev"}}} | {{else}} - << {{{mkws-translate "Prev"}}} | + {{{mkws-translate "Prev"}}} | {{/if}} {{#if morePrev}}...{{/if}} {{#each pages}} - {{#if click}} - {{number}} + {{#if href}} + {{number}} {{else}} {{number}} {{/if}} @@ -38,9 +42,9 @@ pages: {{#if moreNext}}...{{/if}} - {{#if nextClick}} - | {{{mkws-translate "Next"}}} >> + {{#if nextHref}} + | {{{mkws-translate "Next"}}} {{else}} - | {{{mkws-translate "Next"}}} >> + | {{{mkws-translate "Next"}}} {{/if}}