FEATURE: Show the current reply count of the flagged post

This commit is contained in:
Gerhard Schlager 2018-04-04 18:16:44 +02:00
parent f2d00e5eff
commit 35efdb39b3
4 changed files with 11 additions and 0 deletions

View File

@ -3,3 +3,6 @@
{{/if}} {{/if}}
{{topic-status topic=flaggedPost.topic}} {{topic-status topic=flaggedPost.topic}}
<a href='{{unbound flaggedPost.url}}'>{{{unbound flaggedPost.topic.fancyTitle}}}</a> <a href='{{unbound flaggedPost.url}}'>{{{unbound flaggedPost.topic.fancyTitle}}}</a>
{{#if flaggedPost.reply_count}}
<span class="flagged-post-reply-count">{{i18n 'admin.flags.replies' count=flaggedPost.reply_count}}</span>
{{/if}}

View File

@ -67,6 +67,10 @@
} }
} }
.flagged-post-reply-count {
font-weight: normal;
}
.flag-user-lists { .flag-user-lists {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;

View File

@ -2804,6 +2804,9 @@ en:
more: "(more replies...)" more: "(more replies...)"
suspend_user: "Suspend User" suspend_user: "Suspend User"
suspend_user_title: "Suspend user for this post" suspend_user_title: "Suspend user for this post"
replies:
one: "[1 reply]"
other: "[%{count} replies]"
dispositions: dispositions:
agreed: "agreed" agreed: "agreed"

View File

@ -35,6 +35,7 @@ module FlagQuery
p.user_id, p.user_id,
p.topic_id, p.topic_id,
p.post_number, p.post_number,
p.reply_count,
p.hidden, p.hidden,
p.deleted_at, p.deleted_at,
p.user_deleted, p.user_deleted,