0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server
Christopher Giffard 4397bcf86e Template Helpers: Added author hbs helper
Fixes #358

 - Altered post model to enable eager loading of author and
   user relationships
 - Fixed broken base model toJSON method, which prevented
   eager resolution of relationships (thanks @tgriesser)
 - Passes author information to template.
 - Added unit tests for author helper.
 - Added unit tests for findOne and findAll additions to Post Model
   which take into account the eager relationships

 Usage:
 `{{author}}` -- returns the full name of the post author
 `{{author.attribute}}` -- returns property of the current post author
 as described by the user model
2013-08-23 19:13:32 +10:00
..
controllers Minor code cleanup, docs and other bits & pieces 2013-08-06 22:24:40 +01:00
data Data models import, export, and reset for 002 2013-08-05 13:56:30 +01:00
filters App restructure - closes #245 2013-07-11 20:23:34 +01:00
helpers Template Helpers: Added author hbs helper 2013-08-23 19:13:32 +10:00
models Template Helpers: Added author hbs helper 2013-08-23 19:13:32 +10:00
permissions App restructure - closes #245 2013-07-11 20:23:34 +01:00
plugins Minor code cleanup, docs and other bits & pieces 2013-08-06 22:24:40 +01:00
views Added image upload reusable plugin 2013-08-05 23:01:48 +01:00
api.js Minor code cleanup, docs and other bits & pieces 2013-08-06 22:24:40 +01:00
errorHandling.js improves unit testing for pagination and fixes pagination partial template (removed extra </nav>) 2013-07-16 19:57:19 +01:00
require-tree.js JSLint fixes for new version 2013-07-31 09:21:22 +01:00