FIX: Hidden posts were not being displayed with the correct messaging.

This commit is contained in:
Robin Ward 2014-01-21 17:22:43 -05:00
parent da825451d0
commit 194081ca47
3 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
templateName: 'post',
classNameBindings: ['postTypeClass',
'selected',
'post.hidden:deleted',
'post.hidden:post-hidden',
'post.deleted'],
postBinding: 'content',

View File

@ -509,13 +509,16 @@ iframe {
}
}
.deleted {
.topic-body {
background-color: lighten(red, 45%);
}
}
.post-hidden {
opacity: 0.5;
}
.moderator {
.topic-body {
background-color: lighten(yellow, 45%);

View File

@ -269,7 +269,6 @@ class TopicView
def unfiltered_posts
result = @topic.posts
result = result.where(hidden: false) unless @user.try(:staff?)
result = result.with_deleted if @user.try(:staff?)
result
end