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'> <div class='post-contents'>
{{reviewable-created-by-name user=reviewable.target_created_by tagName=''}} {{reviewable-created-by-name user=reviewable.target_created_by tagName=''}}
<div class='post-body'> <div class='post-body'>
{{#if reviewable.blank_post}}
<p>{{i18n "review.deleted_post"}}</p>
{{else}}
{{{reviewable.cooked}}} {{{reviewable.cooked}}}
{{/if}}
</div> </div>
{{yield}} {{yield}}
</div> </div>

View File

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

View File

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