Ghost/core/server
Paul Adam Davis 503f359aab Add plural handlebars helper
Closes #3414

- Adds a helper which shows a select string deopending on the number of items provided

```
{{plural pagination.total empty='No posts' singular='% post' plural='% posts'}}
```
If `pagination.total` == 0, output 'No Posts'
If `pagination.total` == 1, outputs `1 Post`
If `pagination.total` ==  2 or more, outputs `2 Posts`

Credit to @sebgie for making this work.
2014-07-29 11:40:31 +01:00
..
api Implementing HTML emails 2014-07-29 00:55:14 -04:00
apps This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
config This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
controllers Fix author page 2014-07-23 09:39:51 +02:00
data Five posts per page 2014-07-24 17:43:48 +01:00
email-templates Implementing HTML emails 2014-07-29 00:55:14 -04:00
errors Improving error handling 2014-07-28 06:30:01 +01:00
helpers Add plural handlebars helper 2014-07-29 11:40:31 +01:00
middleware Change refresh token expiry 2014-07-28 15:19:49 +02:00
models Error when inviting users 2014-07-29 00:06:40 -04:00
permissions Permissions Improvements 2014-07-28 06:29:59 +01:00
routes Change refresh token expiry 2014-07-28 15:19:49 +02:00
storage Change refresh token expiry 2014-07-28 15:19:49 +02:00
utils Change refresh token expiry 2014-07-28 15:19:49 +02:00
views Remove inline script from default.hbs 2014-07-21 20:00:54 +02:00
api.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00
filters.js Implement filter context 2014-04-06 15:43:11 +00:00
index.js Merge pull request #3367 from jaswilli/issue-3161 2014-07-23 04:47:19 +01:00
mail.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
middleware.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00
require-tree.js Error handling for require-tree 2014-03-25 22:38:48 +00:00
update-check.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
xmlrpc.js Add distinct error classes 2014-05-09 12:11:29 +02:00