mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
6f929eee4a
Closes #3950 - Fixed up event attachment and removal in a few mixins - Renamed content-list-content-view to something more understandable - simplify transition from posts.index to posts.post
22 lines
550 B
JavaScript
22 lines
550 B
JavaScript
import itemView from 'ghost/views/item-view';
|
|
|
|
var PostItemView = itemView.extend({
|
|
classNameBindings: ['isFeatured:featured', 'isPage:page'],
|
|
|
|
isFeatured: Ember.computed.alias('controller.model.featured'),
|
|
|
|
isPage: Ember.computed.alias('controller.model.page'),
|
|
|
|
//Edit post on double click
|
|
doubleClick: function () {
|
|
this.get('controller').send('openEditor', this.get('controller.model'));
|
|
},
|
|
|
|
click: function () {
|
|
this.get('controller').send('showPostContent');
|
|
}
|
|
|
|
});
|
|
|
|
export default PostItemView;
|