2014-03-02 09:30:35 -05:00
|
|
|
import itemView from 'ghost/views/item-view';
|
|
|
|
|
2014-03-03 15:18:10 -05:00
|
|
|
var PostItemView = itemView.extend({
|
2014-06-17 15:20:54 -05:00
|
|
|
classNameBindings: ['isFeatured:featured', 'isPage:page'],
|
2014-06-16 00:44:07 -05:00
|
|
|
|
2014-06-17 15:20:54 -05:00
|
|
|
isFeatured: Ember.computed.alias('controller.model.featured'),
|
2014-06-16 00:44:07 -05:00
|
|
|
|
2014-06-17 15:20:54 -05:00
|
|
|
isPage: Ember.computed.alias('controller.model.page'),
|
2014-06-16 04:38:29 -05:00
|
|
|
|
2014-06-17 15:20:54 -05:00
|
|
|
// WIP for #2308
|
|
|
|
/*
|
2014-03-02 09:30:35 -05:00
|
|
|
openEditor: function () {
|
2014-04-20 09:48:34 -05:00
|
|
|
this.get('controller').send('openEditor', this.get('controller.model')); // send action to handle transition to editor route
|
2014-06-01 15:53:16 -05:00
|
|
|
}.on('doubleClick')
|
2014-06-17 15:20:54 -05:00
|
|
|
*/
|
2014-03-03 15:18:10 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default PostItemView;
|