2013-02-06 03:16:51 +08:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span15'>
|
|
|
|
<ul class="nav nav-pills">
|
2013-09-17 02:08:55 +08: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-06 03:16:51 +08:00
|
|
|
</ul>
|
2013-05-08 01:30:12 +08:00
|
|
|
</div>
|
2013-02-06 03:16:51 +08:00
|
|
|
</div>
|
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
<div class="admin-container">
|
2014-07-29 01:17:37 +08:00
|
|
|
{{#if loading}}
|
2013-11-17 03:14:34 +08:00
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{else}}
|
2014-07-29 01:17:37 +08:00
|
|
|
{{#if length}}
|
2013-11-17 03:14:34 +08: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-24 11:20:57 +08:00
|
|
|
<th class='flaggers'>{{#if adminOldFlagsView}}{{i18n admin.flags.resolved_by}}{{/if}}</th>
|
2013-11-17 03:14:34 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost in content}}
|
2014-07-29 01:17:37 +08:00
|
|
|
<tr {{bind-attr class="flaggedPost.extraClasses"}}>
|
2013-11-17 03:14:34 +08:00
|
|
|
|
2014-07-29 01:17:37 +08: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-06 06:54:16 +08:00
|
|
|
{{/if}}
|
2014-07-29 01:17:37 +08:00
|
|
|
</td>
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2014-07-29 01:17:37 +08:00
|
|
|
<td class='excerpt'>
|
|
|
|
<h3>
|
|
|
|
{{#if flaggedPost.topic.isPrivateMessage}}
|
|
|
|
<span class="private-message-glyph">{{icon envelope}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{topic-status topic=flaggedPost.topic}}
|
2014-07-30 17:16:49 +08:00
|
|
|
<a href='{{unbound flaggedPost.url}}'>{{flaggedPost.topic.title}}</a>
|
2014-07-29 01:17:37 +08:00
|
|
|
</h3>
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{{flaggedPost.excerpt}}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2013-11-17 03:14:34 +08:00
|
|
|
|
2014-07-29 01:17:37 +08:00
|
|
|
<td class='flaggers'>
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost.flaggers}}
|
|
|
|
<tr>
|
2014-08-13 14:52:43 +08:00
|
|
|
<td class='avatar'>
|
2014-07-29 01:17:37 +08:00
|
|
|
{{#link-to 'adminUser' user}}
|
|
|
|
{{avatar user imageSize="small"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
2014-08-12 04:28:11 +08:00
|
|
|
<td>
|
2014-08-12 00:21:34 +08:00
|
|
|
{{#link-to 'adminUser' user}}
|
|
|
|
{{user.username}}
|
|
|
|
{{/link-to}}
|
2014-08-12 04:28:11 +08:00
|
|
|
{{age flaggedAt}}
|
2014-08-12 00:21:34 +08:00
|
|
|
<br />
|
2014-07-29 01:17:37 +08:00
|
|
|
{{flagType}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2014-07-29 01:17:37 +08:00
|
|
|
<td class='flaggers result'>
|
2014-08-12 04:28:11 +08:00
|
|
|
{{#if adminOldFlagsView}}
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost.flaggers}}
|
|
|
|
<tr>
|
2014-08-13 14:52:43 +08:00
|
|
|
<td class='avatar'>
|
2014-08-12 04:28:11 +08:00
|
|
|
{{#link-to 'adminUser' disposedBy}}
|
|
|
|
{{avatar disposedBy imageSize="small"}}
|
|
|
|
{{/link-to}}
|
2014-08-13 14:52:43 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-08-12 04:28:11 +08:00
|
|
|
{{age disposedAt}}
|
|
|
|
{{{dispositionIcon}}}
|
|
|
|
{{#if tookAction}}
|
|
|
|
<i class='fa fa-gavel' title='{{i18n admin.flags.took_action}}'></i>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
2014-07-29 01:17:37 +08:00
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2014-02-06 06:54:16 +08:00
|
|
|
{{#if flaggedPost.topicFlagged}}
|
2014-07-29 01:17:37 +08:00
|
|
|
<tr class='message'>
|
2014-02-06 06:54:16 +08:00
|
|
|
<td></td>
|
2014-07-29 01:17:37 +08:00
|
|
|
<td colspan="3">
|
|
|
|
<div>
|
2014-07-29 15:34:58 +08:00
|
|
|
{{{i18n admin.flags.topic_flagged}}} <a href='{{unbound flaggedPost.url}}' class="btn">{{i18n admin.flags.visit_topic}}</a>
|
2014-07-29 01:17:37 +08:00
|
|
|
</div>
|
|
|
|
</td>
|
2014-02-06 06:54:16 +08:00
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
|
2014-07-29 01:17:37 +08:00
|
|
|
{{#each flaggedPost.conversations}}
|
|
|
|
<tr class='message'>
|
2013-11-17 03:14:34 +08:00
|
|
|
<td></td>
|
2014-07-29 01:17:37 +08:00
|
|
|
<td colspan="3">
|
2013-11-17 03:14:34 +08:00
|
|
|
<div>
|
2014-07-29 01:17:37 +08: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-17 03:14:34 +08:00
|
|
|
</div>
|
2013-06-26 15:01:39 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2013-11-17 03:14:34 +08:00
|
|
|
{{/each}}
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2014-07-29 01:17:37 +08:00
|
|
|
<tr>
|
2013-11-17 03:14:34 +08:00
|
|
|
<td colspan="4" class="action">
|
2014-07-29 01:17:37 +08:00
|
|
|
{{#if adminActiveFlagsView}}
|
2014-08-08 07:39:12 +08:00
|
|
|
<button title='{{i18n admin.flags.agree_title}}' class='btn' {{action showAgreeFlagModal flaggedPost}}><i class="fa fa-thumbs-o-up"></i>{{i18n admin.flags.agree}}…</button>
|
2014-07-29 15:34:58 +08:00
|
|
|
{{#if flaggedPost.postHidden}}
|
2014-08-05 04:48:04 +08:00
|
|
|
<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>
|
2014-07-29 01:17:37 +08:00
|
|
|
{{else}}
|
2014-08-05 04:48:04 +08:00
|
|
|
<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>
|
2014-02-06 06:54:16 +08:00
|
|
|
{{/if}}
|
2014-08-05 04:48:04 +08:00
|
|
|
<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>
|
2014-08-08 07:39:12 +08:00
|
|
|
<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>
|
2014-02-06 06:54:16 +08:00
|
|
|
{{/if}}
|
2013-11-17 03:14:34 +08:00
|
|
|
</td>
|
2014-07-29 01:17:37 +08:00
|
|
|
</tr>
|
2013-07-27 03:40:08 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
{{/each}}
|
2013-06-21 15:40:20 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{#if view.loading}}
|
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{/if}}
|
2013-06-21 15:40:20 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
{{else}}
|
|
|
|
<p>{{i18n admin.flags.no_results}}</p>
|
2013-08-19 19:14:26 +08:00
|
|
|
{{/if}}
|
2013-06-05 22:24:50 +08:00
|
|
|
{{/if}}
|
2013-11-17 03:14:34 +08:00
|
|
|
</div>
|