0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/unit
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
..
apps_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
bootstrap_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
config_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
errorHandling_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
filters_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
frontend_spec.js Five posts per page 2014-07-24 17:43:48 +01:00
mail_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
middleware_spec.js Wire permmissions for notifications, mail and tags 2014-07-17 16:44:09 +01:00
permissions_spec.js Permissions Improvements 2014-07-28 06:29:59 +01:00
server_helpers_index_spec.js Add plural handlebars helper 2014-07-29 11:40:31 +01:00
server_helpers_template_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
server_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
showdown_client_integrated_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
showdown_ghostGFM_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
showdown_ghostimagepreview_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
storage_localfilesystem_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
xmlrpc_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00