2013-02-05 14:16:51 -05:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span15'>
|
|
|
|
<ul class="nav nav-pills">
|
2013-09-16 14:08:55 -04:00
|
|
|
<li>{{#link-to 'adminFlags.active'}}{{i18n admin.flags.active}}{{/link-to}}</li>
|
|
|
|
<li>{{#link-to 'adminFlags.old'}}{{i18n admin.flags.old}}{{/link-to}}</li>
|
2013-02-05 14:16:51 -05:00
|
|
|
</ul>
|
2013-05-07 13:30:12 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
<div class="admin-container">
|
2014-07-28 13:17:37 -04:00
|
|
|
{{#if loading}}
|
2013-11-16 14:14:34 -05:00
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{else}}
|
2014-07-28 13:17:37 -04:00
|
|
|
{{#if length}}
|
2013-11-16 14:14:34 -05:00
|
|
|
<table class='admin-flags'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class='user'></th>
|
|
|
|
<th class='excerpt'></th>
|
|
|
|
<th class='flaggers'>{{i18n admin.flags.flagged_by}}</th>
|
2014-06-23 23:20:57 -04:00
|
|
|
<th class='flaggers'>{{#if adminOldFlagsView}}{{i18n admin.flags.resolved_by}}{{/if}}</th>
|
2013-11-16 14:14:34 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost in content}}
|
2014-07-28 13:17:37 -04:00
|
|
|
<tr {{bind-attr class="flaggedPost.extraClasses"}}>
|
2013-11-16 14:14:34 -05:00
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
<td class='user'>
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{#if flaggedPost.user}}
|
|
|
|
{{#link-to 'adminUser' flaggedPost.user}}{{avatar flaggedPost.user imageSize="small"}}{{/link-to}}
|
|
|
|
{{/if}}
|
2014-02-05 17:54:16 -05:00
|
|
|
{{/if}}
|
2014-07-28 13:17:37 -04:00
|
|
|
</td>
|
2013-06-21 03:12:17 -04:00
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
<td class='excerpt'>
|
|
|
|
<h3>
|
|
|
|
{{#if flaggedPost.topic.isPrivateMessage}}
|
|
|
|
<span class="private-message-glyph">{{icon envelope}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{topic-status topic=flaggedPost.topic}}
|
|
|
|
<a href='{{unbound flaggedPost.topic.url}}'>{{flaggedPost.topic.title}}</a>
|
|
|
|
</h3>
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{{flaggedPost.excerpt}}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2013-11-16 14:14:34 -05:00
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
<td class='flaggers'>
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost.flaggers}}
|
|
|
|
<tr>
|
|
|
|
<td width="20%">
|
|
|
|
{{#link-to 'adminUser' user}}
|
|
|
|
{{avatar user imageSize="small"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td width="30%">
|
|
|
|
{{date flaggedAt}}
|
|
|
|
</td>
|
|
|
|
<td width="50%">
|
|
|
|
{{flagType}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
2013-06-21 03:12:17 -04:00
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
<td class='flaggers result'>
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost.flaggers}}
|
|
|
|
<tr>
|
|
|
|
<td width="20%">
|
|
|
|
{{#link-to 'adminUser' disposedBy}}
|
|
|
|
{{avatar disposedBy imageSize="small"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td width="30%">
|
|
|
|
{{date disposedAt}}
|
|
|
|
</td>
|
|
|
|
<td width="50%">
|
|
|
|
{{disposition}}
|
|
|
|
{{#if tookAction}}
|
|
|
|
<i class='fa fa-gavel'></i>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
2013-06-21 03:12:17 -04:00
|
|
|
|
2014-02-05 17:54:16 -05:00
|
|
|
{{#if flaggedPost.topicFlagged}}
|
2014-07-28 13:17:37 -04:00
|
|
|
<tr class='message'>
|
2014-02-05 17:54:16 -05:00
|
|
|
<td></td>
|
2014-07-28 13:17:37 -04:00
|
|
|
<td colspan="3">
|
|
|
|
<div>
|
|
|
|
{{{i18n admin.flags.topic_flagged}}}
|
|
|
|
</div>
|
|
|
|
</td>
|
2014-02-05 17:54:16 -05:00
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
{{#each flaggedPost.conversations}}
|
|
|
|
<tr class='message'>
|
2013-11-16 14:14:34 -05:00
|
|
|
<td></td>
|
2014-07-28 13:17:37 -04:00
|
|
|
<td colspan="3">
|
2013-11-16 14:14:34 -05:00
|
|
|
<div>
|
2014-07-28 13:17:37 -04:00
|
|
|
{{#if response}}
|
|
|
|
<p>
|
|
|
|
{{#link-to 'adminUser' response.user}}{{avatar response.user imageSize="small"}}{{/link-to}} {{{response.excerpt}}}
|
|
|
|
</p>
|
|
|
|
{{#if reply}}
|
|
|
|
<p>
|
|
|
|
{{#link-to 'adminUser' reply.user}}{{avatar reply.user imageSize="small"}}{{/link-to}} {{{reply.excerpt}}}
|
|
|
|
{{#if hasMore}}
|
|
|
|
<a href="{{unbound permalink}}">{{i18n admin.flags.more}}</a>
|
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
|
|
|
<a href="{{unbound permalink}}">
|
|
|
|
<button class='btn btn-reply'><i class="fa fa-reply"></i> {{i18n admin.flags.reply_message}}</button>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-11-16 14:14:34 -05:00
|
|
|
</div>
|
2013-06-26 03:01:39 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2013-11-16 14:14:34 -05:00
|
|
|
{{/each}}
|
2013-06-21 03:12:17 -04:00
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
<tr>
|
2013-11-16 14:14:34 -05:00
|
|
|
<td colspan="4" class="action">
|
2014-07-28 13:17:37 -04:00
|
|
|
{{#if adminActiveFlagsView}}
|
|
|
|
{{#if flaggedPost.topicFlagged}}
|
|
|
|
<a href='{{unbound flaggedPost.url}}' class="btn">{{i18n admin.flags.visit_topic}}</a>
|
2014-02-05 17:54:16 -05:00
|
|
|
{{/if}}
|
2013-06-21 03:29:54 -04:00
|
|
|
|
2014-07-28 13:17:37 -04:00
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{#if flaggedPost.postHidden}}
|
|
|
|
<button title='{{i18n admin.flags.disagree_flag_unhide_post_title}}' class='btn' {{action disagreeFlags flaggedPost}}><i class="fa fa-thumbs-o-down"></i> {{i18n admin.flags.disagree_flag_unhide_post}}</button>
|
|
|
|
{{else}}
|
|
|
|
<button title='{{i18n admin.flags.agree_flag_hide_post_title}}' class='btn btn-primary' {{action agreeFlags flaggedPost}}><i class="fa fa-thumbs-o-up"></i> {{i18n admin.flags.agree_flag_hide_post}}</button>
|
|
|
|
<button title='{{i18n admin.flags.disagree_flag_title}}' class='btn' {{action disagreeFlags flaggedPost}}><i class="fa fa-thumbs-o-down"></i> {{i18n admin.flags.disagree_flag}}</button>
|
|
|
|
{{/if}}
|
|
|
|
<button title='{{i18n admin.flags.defer_flag_title}}' class='btn' {{action deferFlags flaggedPost}}><i class="fa fa-external-link"></i> {{i18n admin.flags.defer_flag}}</button>
|
|
|
|
<button title='{{i18n admin.flags.delete_title}}' class='btn btn-danger' {{action showDeleteFlagModal flaggedPost}}><i class="fa fa-trash-o"></i> {{i18n admin.flags.delete}}</button>
|
|
|
|
{{else}}
|
|
|
|
<button title='{{i18n admin.flags.clear_topic_flags_title}}' class='btn' {{action doneTopicFlags flaggedPost}}>{{i18n admin.flags.clear_topic_flags}}</button>
|
2014-02-05 17:54:16 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2013-11-16 14:14:34 -05:00
|
|
|
</td>
|
2014-07-28 13:17:37 -04:00
|
|
|
</tr>
|
2013-07-26 15:40:08 -04:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
{{/each}}
|
2013-06-21 03:40:20 -04:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{#if view.loading}}
|
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{/if}}
|
2013-06-21 03:40:20 -04:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
{{else}}
|
|
|
|
<p>{{i18n admin.flags.no_results}}</p>
|
2013-08-19 07:14:26 -04:00
|
|
|
{{/if}}
|
2013-06-05 10:24:50 -04:00
|
|
|
{{/if}}
|
2013-11-16 14:14:34 -05:00
|
|
|
</div>
|