deleted class only for real deleted posts

This commit is contained in:
Sam 2013-07-23 15:42:44 +10:00
parent 3ad7d74c52
commit 73e0418b41
1 changed files with 1 additions and 6 deletions

View File

@ -12,15 +12,10 @@ Discourse.PostView = Discourse.View.extend({
classNameBindings: ['postTypeClass',
'selected',
'post.hidden:hidden',
'addDeletedClass:deleted',
'post.deleted',
'parentPost:replies-above'],
postBinding: 'content',
addDeletedClass: function() {
var post = this.get('post');
return post.get('deleted') || post.get('user_deleted');
}.property('post.deleted','post.user_deleted'),
postTypeClass: function() {
return this.get('post.post_type') === Discourse.Site.instance().get('post_types.moderator_action') ? 'moderator' : 'regular';
}.property('post.post_type'),