0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
David Balderston c55140d0db Change default setting for to inside foreach helper
closes #6604

* Default for `to` was always `(from-1) + limit`. This caused a problem
where the `to` value could be higher than the length of the number of
blog posts, causing `@last` to never be called/reached
* Now sets `to` to have a default of `length` and if a limit was sent
through and not higher than `length`, to then set `to` to that value
* Added some extra tests for `@last` and `@first` use cases
* Added some inline commenting
2016-03-17 17:52:38 -07:00
..
api Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
apps Harvest server side strings 2015-12-19 12:12:16 +01:00
config Always override database config + exit tests on error 2016-03-14 15:39:59 +00:00
controllers Restructure Configuration API endpoint 2016-02-19 18:49:23 +00:00
data Merge pull request #6599 from ErisDS/migrations-split 2016-03-15 13:47:44 +01:00
errors Refactor authentication API into pipeline format 2016-03-07 11:53:54 -06:00
events Set a higher maxListeners value 2015-10-09 19:27:49 +01:00
helpers Change default setting for to inside foreach helper 2016-03-17 17:52:38 -07:00
mail Refactor mail service 2016-02-10 16:31:42 -06:00
middleware Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
models Refactor authentication API into pipeline format 2016-03-07 11:53:54 -06:00
permissions Harvest server side strings 2015-12-19 12:12:16 +01:00
routes Including timezones API in configuration endpoint 2016-02-24 16:44:01 +02:00
storage Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
translations Merge pull request #6579 from jaswilli/auth-api 2016-03-08 15:54:34 +01:00
utils Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
views Fixup broken error page styles 2015-06-08 12:14:58 +01:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Harvest server side strings 2015-12-19 12:12:16 +01:00
i18n.js Fix jsDoc on i18n.t() 2016-02-22 01:57:22 +01:00
index.js Moves builFilesExist to startup-checks 2016-02-14 18:28:37 +00:00
update-check.js deps: bluebird@3.3.3 2016-03-01 15:17:20 -06:00