FIX: Show when a post has been deleted in the flag review queue

This commit is contained in:
Robin Ward 2019-04-17 16:14:36 -04:00
parent ee808dc682
commit cd2e93b598
3 changed files with 16 additions and 2 deletions

View File

@ -5,7 +5,11 @@
<div class='post-contents'>
{{reviewable-created-by-name user=reviewable.target_created_by tagName=''}}
<div class='post-body'>
{{{reviewable.cooked}}}
{{#if reviewable.blank_post}}
<p>{{i18n "review.deleted_post"}}</p>
{{else}}
{{{reviewable.cooked}}}
{{/if}}
</div>
{{yield}}
</div>

View File

@ -1,3 +1,12 @@
class ReviewableFlaggedPostSerializer < ReviewableSerializer
target_attributes :cooked, :raw, :reply_count
attributes :blank_post
def blank_post
true
end
def include_blank_post?
object.target.blank?
end
end

View File

@ -382,7 +382,8 @@ en:
filtered_topic: "You have filtered to reviewable content in a single topic."
filtered_user: "User:"
show_all_topics: "show all topics"
deleted_user: "(deleted user)"
deleted_post: "(post deleted)"
deleted_user: "(user deleted)"
user:
username: "Username"
email: "Email"