FIX: Show replies to the post, not the topic

This makes more sense when reviewing. How many people replied to this
objectionable thing?
This commit is contained in:
Robin Ward 2019-04-04 15:13:59 -04:00
parent 9c8cc73c39
commit dd5b8bd85e
3 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
<div class='reviewable-meta-data'>
<span class='reviewable-type'>{{reviewable.humanType}}</span>
<span class='badge-notification new-posts score' title={{i18n "review.scores.score"}}>{{format-score reviewable.score}}</span>
{{#if reviewable.topic}}
<span class='reply-count'>{{i18n "review.topic_replies" count=reviewable.topic.reply_count}}</span>
{{#if reviewable.reply_count}}
<span class='reply-count'>{{i18n "review.replies" count=reviewable.reply_count}}</span>
{{/if}}
<span class='status'>
{{#if reviewable.approved}}

View File

@ -1,3 +1,3 @@
class ReviewableFlaggedPostSerializer < ReviewableSerializer
target_attributes :cooked, :raw
target_attributes :cooked, :raw, :reply_count
end

View File

@ -408,7 +408,7 @@ en:
unique_users:
one: "1 user"
other: "{{count}} users"
topic_replies:
replies:
one: "1 reply"
other: "{{count}} replies"
edit: "Edit"