2016-05-09 16:07:36 -04:00
|
|
|
{{#if model.length}}
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#load-more selector="tbody tr" action="loadMore"}}
|
|
|
|
<table class="admin-flags">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class='excerpt'></th>
|
|
|
|
<th class='flaggers'>{{i18n 'admin.flags.flagged_by'}}</th>
|
|
|
|
<th class='flaggers'>{{#if adminOldFlagsView}}{{i18n 'admin.flags.resolved_by'}}{{/if}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each content as |flaggedPost|}}
|
|
|
|
<tr class={{flaggedPost.extraClasses}}>
|
2014-11-11 15:48:13 -05:00
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
<td class='excerpt'>
|
2017-05-24 15:52:18 -04:00
|
|
|
|
|
|
|
<div class="flex-center-align">
|
|
|
|
<div class="flagged-post-avatar">
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{#if flaggedPost.user}}
|
|
|
|
{{#link-to 'adminUser' flaggedPost.user}}{{avatar flaggedPost.user imageSize="large"}}{{/link-to}}
|
2017-07-26 16:33:17 -04:00
|
|
|
{{#if flaggedPost.wasEdited}}
|
|
|
|
{{d-icon "pencil" title="admin.flags.was_edited"}}
|
|
|
|
{{/if}}
|
2017-05-24 15:52:18 -04:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if adminActiveFlagsView}}
|
|
|
|
{{#if flaggedPost.previous_flags_count}}
|
|
|
|
<span title="{{i18n 'admin.flags.previous_flags_count' count=flaggedPost.previous_flags_count}}" class="badge-notification flagged-posts">{{flaggedPost.previous_flags_count}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="topic-excerpt">
|
|
|
|
<h3>
|
|
|
|
{{#if flaggedPost.topic.isPrivateMessage}}
|
2017-07-26 16:25:09 -04:00
|
|
|
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
2017-05-24 15:52:18 -04:00
|
|
|
{{/if}}
|
|
|
|
{{topic-status topic=flaggedPost.topic}}
|
|
|
|
<a href='{{unbound flaggedPost.url}}'>{{{unbound flaggedPost.topic.fancyTitle}}}</a>
|
|
|
|
</h3>
|
|
|
|
{{#unless site.mobileView}}
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
<p>{{{flaggedPost.excerpt}}}</p>
|
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if site.mobileView}}
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
<p>{{{flaggedPost.excerpt}}}</p>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{/if}}
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
2016-06-22 10:32:50 -04:00
|
|
|
</td>
|
2014-11-11 15:48:13 -05:00
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
<td class='flaggers'>
|
2014-11-11 15:48:13 -05:00
|
|
|
<table>
|
|
|
|
<tbody>
|
2016-04-29 17:29:41 -04:00
|
|
|
{{#each flaggedPost.flaggers as |flagger|}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<tr>
|
|
|
|
<td class='avatar'>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#link-to 'adminUser' flagger.user}}
|
|
|
|
{{avatar flagger.user imageSize="medium"}}
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#link-to 'adminUser' flagger.user}}
|
|
|
|
{{flagger.user.username}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{format-age flagger.flaggedAt}}
|
|
|
|
<br />
|
|
|
|
{{flagger.flagType}}
|
2014-11-11 15:48:13 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-06-22 10:32:50 -04:00
|
|
|
</td>
|
2014-11-11 15:48:13 -05:00
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
<td class='flaggers result'>
|
|
|
|
{{#if adminOldFlagsView}}
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost.flaggers as |flagger|}}
|
|
|
|
<tr>
|
|
|
|
<td class='avatar'>
|
|
|
|
{{#link-to 'adminUser' flagger.disposedBy}}
|
|
|
|
{{avatar flagger.disposedBy imageSize="medium"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{format-age flagger.disposedAt}}
|
|
|
|
{{{flagger.dispositionIcon}}}
|
|
|
|
{{#if flagger.tookAction}}
|
2017-07-26 16:33:17 -04:00
|
|
|
{{d-icon "gavel" title="admin.flags.took_action"}}
|
2016-06-22 10:32:50 -04:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
2014-11-11 15:48:13 -05:00
|
|
|
</td>
|
2016-06-22 10:32:50 -04:00
|
|
|
|
2014-11-11 15:48:13 -05:00
|
|
|
</tr>
|
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#if flaggedPost.topicFlagged}}
|
|
|
|
<tr class='message'>
|
|
|
|
<td colspan="3">
|
|
|
|
<div>
|
|
|
|
{{{i18n 'admin.flags.topic_flagged'}}} <a href='{{unbound flaggedPost.url}}' class="btn">{{i18n 'admin.flags.visit_topic'}}</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#each flaggedPost.conversations as |c|}}
|
|
|
|
<tr class='message'>
|
|
|
|
<td colspan="3">
|
|
|
|
<div>
|
|
|
|
{{#if c.response}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<p>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#link-to 'adminUser' c.response.user}}{{avatar c.response.user imageSize="medium"}}{{/link-to}} {{{c.response.excerpt}}}
|
2014-11-11 15:48:13 -05:00
|
|
|
</p>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#if c.reply}}
|
|
|
|
<p>
|
|
|
|
{{#link-to 'adminUser' c.reply.user}}{{avatar c.reply.user imageSize="medium"}}{{/link-to}} {{{c.reply.excerpt}}}
|
|
|
|
{{#if c.hasMore}}
|
|
|
|
<a href="{{unbound c.permalink}}">{{i18n 'admin.flags.more'}}</a>
|
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
|
|
|
<a href="{{unbound c.permalink}}">
|
2017-07-26 16:33:17 -04:00
|
|
|
<button class='btn btn-reply'>{{d-icon "reply"}} {{i18n 'admin.flags.reply_message'}}</button>
|
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
</a>
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
2016-06-22 10:32:50 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2014-11-11 15:48:13 -05:00
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#unless adminOldFlagsView}}
|
|
|
|
<tr>
|
2017-05-24 15:52:18 -04:00
|
|
|
<td colspan="3" class="action">
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#if adminActiveFlagsView}}
|
2017-07-26 16:33:17 -04:00
|
|
|
<button title='{{i18n 'admin.flags.agree_title'}}' class='btn' {{action "showAgreeFlagModal" flaggedPost}}>{{d-icon "thumbs-o-up"}}{{i18n 'admin.flags.agree'}}…</button>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{#if flaggedPost.postHidden}}
|
2017-07-26 16:33:17 -04:00
|
|
|
<button title='{{i18n 'admin.flags.disagree_flag_unhide_post_title'}}' class='btn' {{action "disagreeFlags" flaggedPost}}>{{d-icon "thumbs-o-down"}}{{i18n 'admin.flags.disagree_flag_unhide_post'}}</button>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{else}}
|
2017-07-31 10:18:36 -04:00
|
|
|
<button title='{{i18n 'admin.flags.disagree_flag_title'}}' class='btn' {{action "disagreeFlags" flaggedPost}}>{{d-icon "thumbs-o-down"}}{{i18n 'admin.flags.disagree_flag'}}</button>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{/if}}
|
2017-07-26 16:33:17 -04:00
|
|
|
<button title='{{i18n 'admin.flags.defer_flag_title'}}' class='btn' {{action "deferFlags" flaggedPost}}>{{d-icon "external-link"}}{{i18n 'admin.flags.defer_flag'}}</button>
|
|
|
|
<button title='{{i18n 'admin.flags.delete_title'}}' class='btn btn-danger' {{action "showDeleteFlagModal" flaggedPost}}>{{d-icon "trash-o"}}{{i18n 'admin.flags.delete'}}…</button>
|
2016-06-22 10:32:50 -04:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/unless}}
|
2014-11-11 15:48:13 -05:00
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
{{/each}}
|
2014-11-11 15:48:13 -05:00
|
|
|
|
2016-06-22 10:32:50 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-05-09 16:07:36 -04:00
|
|
|
{{/load-more}}
|
2014-11-11 15:48:13 -05:00
|
|
|
|
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<p>{{i18n 'admin.flags.no_results'}}</p>
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|