2017-09-12 02:01:59 +08:00
|
|
|
<div class='flagged-post-details'>
|
|
|
|
<div class="flagged-post-avatar">
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{#if flaggedPost.user}}
|
2017-09-12 04:44:20 +08:00
|
|
|
{{#link-to 'adminUser' flaggedPost.user.id flaggedPost.user.username}}
|
|
|
|
{{avatar flaggedPost.user imageSize="large"}}
|
|
|
|
{{/link-to}}
|
2017-09-12 02:01:59 +08:00
|
|
|
{{#if flaggedPost.wasEdited}}
|
2017-09-26 04:29:48 +08:00
|
|
|
<div class='edited-after'>
|
|
|
|
{{d-icon "pencil" title="admin.flags.was_edited"}}
|
|
|
|
</div>
|
2017-09-09 04:27:07 +08:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2017-09-12 02:01:59 +08:00
|
|
|
{{#if canAct}}
|
|
|
|
{{#if flaggedPost.previous_flags_count}}
|
|
|
|
<span title="{{i18n 'admin.flags.previous_flags_count' count=flaggedPost.previous_flags_count}}" class="badge-notification previous-flagged-posts">{{flaggedPost.previous_flags_count}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2017-09-09 04:27:07 +08:00
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
<div class="flagged-post-contents">
|
2017-11-10 02:18:33 +08:00
|
|
|
<div class='flagged-post-user-details'>
|
|
|
|
<a class='username' href={{user.path}} data-user-card={{flaggedPost.user.username}}>{{format-username flaggedPost.user.username}}</a>
|
|
|
|
</div>
|
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
<div class='flagged-post-excerpt'>
|
|
|
|
{{#unless hideTitle}}
|
|
|
|
<h3>
|
|
|
|
{{#if flaggedPost.topic.isPrivateMessage}}
|
|
|
|
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{topic-status topic=flaggedPost.topic}}
|
|
|
|
<a href='{{unbound flaggedPost.url}}'>{{{unbound flaggedPost.topic.fancyTitle}}}</a>
|
|
|
|
</h3>
|
|
|
|
{{/unless}}
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{#if expanded}}
|
|
|
|
{{{flaggedPost.cooked}}}
|
|
|
|
{{else}}
|
|
|
|
<p>
|
|
|
|
{{{flaggedPost.excerpt}}}
|
|
|
|
<a href {{action "expand"}}>{{i18n "admin.flags.show_full"}}</a>
|
|
|
|
</p>
|
2017-09-12 02:01:59 +08:00
|
|
|
{{/if}}
|
2017-09-15 00:44:49 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2017-09-09 04:27:07 +08:00
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
{{#if flaggedPost.topicFlagged}}
|
|
|
|
<div class='flagged-post-message'>
|
|
|
|
<span class='text'>{{{i18n 'admin.flags.topic_flagged'}}}</span>
|
|
|
|
<a href={{flaggedPost.url}} class="btn">{{i18n 'admin.flags.visit_topic'}}</a>
|
2017-09-12 02:01:59 +08:00
|
|
|
</div>
|
2017-09-09 04:27:07 +08:00
|
|
|
{{/if}}
|
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
{{#each flaggedPost.conversations as |c|}}
|
|
|
|
<div class='flag-conversation'>
|
|
|
|
{{#if c.response}}
|
|
|
|
{{flagged-post-response response=c.response}}
|
|
|
|
{{#if c.reply}}
|
|
|
|
{{flagged-post-response response=c.reply hasMore=c.hasMore permalink=c.permalink}}
|
|
|
|
{{/if}}
|
|
|
|
<a href={{c.permalink}} class="btn reply-conversation btn-small">
|
|
|
|
{{d-icon "reply"}}
|
|
|
|
{{i18n "admin.flags.reply_message"}}
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2017-09-12 02:01:59 +08:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
<div class='flag-user-lists'>
|
|
|
|
<div class='flagged-by'>
|
|
|
|
<div class='user-list-title'>
|
|
|
|
{{i18n "admin.flags.flagged_by"}}
|
|
|
|
</div>
|
|
|
|
<div class='flag-users'>
|
|
|
|
{{#each flaggedPost.post_actions as |postAction|}}
|
|
|
|
{{#flag-user user=postAction.user date=postAction.created_at}}
|
|
|
|
<div class='flagger-flag-type'>
|
2017-10-18 01:31:45 +08:00
|
|
|
{{post-action-title postAction.post_action_type_id postAction.name_key}}
|
2017-09-15 00:44:49 +08:00
|
|
|
</div>
|
|
|
|
{{/flag-user}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if showResolvedBy}}
|
|
|
|
<div class='flagged-post-resolved-by'>
|
|
|
|
<div class='user-list-title'>
|
|
|
|
{{i18n "admin.flags.resolved_by"}}
|
|
|
|
</div>
|
|
|
|
<div class='flag-users'>
|
|
|
|
{{#each flaggedPost.post_actions as |postAction|}}
|
|
|
|
{{#flag-user user=postAction.disposed_by date=postAction.disposed_at}}
|
|
|
|
{{disposition-icon postAction.disposition}}
|
|
|
|
{{#if postAction.staff_took_action}}
|
|
|
|
{{d-icon "gavel" title="admin.flags.took_action"}}
|
|
|
|
{{/if}}
|
|
|
|
{{/flag-user}}
|
|
|
|
{{/each}}
|
2017-09-12 02:01:59 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-15 00:44:49 +08:00
|
|
|
{{/if}}
|
2017-09-12 02:01:59 +08:00
|
|
|
</div>
|
2017-09-09 04:27:07 +08:00
|
|
|
|
2017-09-15 02:10:39 +08:00
|
|
|
{{#if suspended}}
|
|
|
|
<div class='suspended-message'>
|
|
|
|
The user was suspended for this post.
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
{{#if canAct}}
|
|
|
|
<div class='flagged-post-controls'>
|
2017-11-11 04:55:48 +08:00
|
|
|
{{admin-agree-flag-dropdown
|
|
|
|
post=flaggedPost
|
|
|
|
removeAfter=(action "removeAfter") }}
|
2017-09-09 04:27:07 +08:00
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
{{#if flaggedPost.postHidden}}
|
|
|
|
{{d-button
|
|
|
|
title="admin.flags.disagree_flag_unhide_post_title"
|
|
|
|
class="disagree-flag"
|
|
|
|
action="disagree"
|
|
|
|
icon="thumbs-o-down"
|
|
|
|
label="admin.flags.disagree_flag_unhide_post"}}
|
|
|
|
{{else}}
|
|
|
|
{{d-button
|
|
|
|
title="admin.flags.disagree_flag_title"
|
|
|
|
class="disagree-flag"
|
|
|
|
action="disagree"
|
|
|
|
icon="thumbs-o-down"
|
|
|
|
label="admin.flags.disagree_flag"}}
|
|
|
|
{{/if}}
|
2017-09-09 04:27:07 +08:00
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
{{d-button
|
|
|
|
class="defer-flag"
|
|
|
|
title="admin.flags.defer_flag_title"
|
|
|
|
action="defer"
|
|
|
|
icon="external-link"
|
|
|
|
label="admin.flags.defer_flag"}}
|
2017-09-09 04:27:07 +08:00
|
|
|
|
2017-09-15 00:44:49 +08:00
|
|
|
{{d-button
|
|
|
|
class="btn-danger delete-flag"
|
|
|
|
title="admin.flags.delete_title"
|
|
|
|
action="showDeleteFlagModal"
|
|
|
|
icon="trash-o"
|
|
|
|
label="admin.flags.delete"}}
|
2017-09-15 02:10:39 +08:00
|
|
|
|
|
|
|
{{#unless suspended}}
|
|
|
|
{{d-button
|
|
|
|
class="btn-danger suspend-user"
|
|
|
|
icon="ban"
|
|
|
|
label="admin.flags.suspend_user"
|
|
|
|
title="admin.flags.suspend_user_title"
|
|
|
|
action=(action "showSuspendModal")}}
|
|
|
|
{{/unless}}
|
2017-09-15 00:44:49 +08:00
|
|
|
</div>
|
2017-09-12 02:01:59 +08:00
|
|
|
{{/if}}
|
2017-09-23 22:39:58 +08:00
|
|
|
{{plugin-outlet
|
|
|
|
name="flagged-post-below-controls"
|
|
|
|
tagName=""
|
|
|
|
args=(hash flaggedPost=flaggedPost canAct=canAct)}}
|
2017-09-12 02:01:59 +08:00
|
|
|
</div>
|
2017-09-15 00:44:49 +08:00
|
|
|
</div>
|