FIX: Show when a post has been deleted in the flag review queue
This commit is contained in:
parent
ee808dc682
commit
cd2e93b598
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue