2014-03-02 18:30:35 +04:00
|
|
|
import itemView from 'ghost/views/item-view';
|
|
|
|
|
2014-03-04 00:18:10 +04:00
|
|
|
var PostItemView = itemView.extend({
|
2014-06-18 00:20:54 +04:00
|
|
|
classNameBindings: ['isFeatured:featured', 'isPage:page'],
|
2014-06-16 09:44:07 +04:00
|
|
|
|
2014-06-18 00:20:54 +04:00
|
|
|
isFeatured: Ember.computed.alias('controller.model.featured'),
|
2014-06-16 09:44:07 +04:00
|
|
|
|
2014-06-18 00:20:54 +04:00
|
|
|
isPage: Ember.computed.alias('controller.model.page'),
|
2014-06-21 18:44:53 +04:00
|
|
|
|
|
|
|
//Edit post on double click
|
|
|
|
doubleClick: function () {
|
|
|
|
this.get('controller').send('openEditor', this.get('controller.model'));
|
|
|
|
}
|
|
|
|
|
2014-03-04 00:18:10 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default PostItemView;
|