mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 05:21:36 +03:00
49ea71ed4f
- Change fixture response of posts route to actual format. - Extracted classNames logic of routes into style-body mixin. - Additionally replaced all double-quotes with single-quotes for style conformance.
8 lines
208 B
JavaScript
8 lines
208 B
JavaScript
var equal = Ember.computed.equal;
|
|
|
|
var PostController = Ember.ObjectController.extend({
|
|
isPublished: equal('status', 'published'),
|
|
isDraft: equal('status', 'draft')
|
|
});
|
|
|
|
export default PostController; |