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-16 09:44:07 +04:00
|
|
|
classNameBindings: ['isFeatured'],
|
|
|
|
|
|
|
|
isFeatured: function () {
|
|
|
|
if (this.get('controller.model.featured')) {
|
|
|
|
return 'featured';
|
|
|
|
}
|
|
|
|
}.property('controller.model.featured'),
|
|
|
|
|
2014-03-02 18:30:35 +04:00
|
|
|
openEditor: function () {
|
2014-04-20 18:48:34 +04:00
|
|
|
this.get('controller').send('openEditor', this.get('controller.model')); // send action to handle transition to editor route
|
2014-06-02 00:53:16 +04:00
|
|
|
}.on('doubleClick')
|
2014-03-04 00:18:10 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default PostItemView;
|