2014-03-03 15:18:10 -05:00
|
|
|
import styleBody from 'ghost/mixins/style-body';
|
2014-03-11 11:23:32 -05:00
|
|
|
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
2014-03-02 09:30:35 -05:00
|
|
|
|
2014-03-11 11:23:32 -05:00
|
|
|
var PostsRoute = AuthenticatedRoute.extend(styleBody, {
|
2014-03-03 15:18:10 -05:00
|
|
|
classNames: ['manage'],
|
2014-03-02 09:30:35 -05:00
|
|
|
|
|
|
|
model: function () {
|
2014-05-09 00:00:10 -05:00
|
|
|
return this.store.find('post', { status: 'all', staticPages: 'all' });
|
2014-03-02 09:30:35 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
openEditor: function (post) {
|
|
|
|
this.transitionTo('editor', post);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2014-03-03 15:18:10 -05:00
|
|
|
|
2014-04-20 09:48:34 -05:00
|
|
|
export default PostsRoute;
|