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">
|
|
|
|
{{#if model.loading}}
|
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{else}}
|
|
|
|
{{#if model.length}}
|
|
|
|
<table class='admin-flags'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class='user'></th>
|
|
|
|
<th class='excerpt'></th>
|
|
|
|
<th class='flaggers'>{{i18n admin.flags.flagged_by}}</th>
|
|
|
|
<th class='last-flagged'></th>
|
|
|
|
<th class='action'></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost in content}}
|
2014-01-15 01:48:57 +08:00
|
|
|
<tr {{bind-attr class="flaggedPost.extraClasses"}}>
|
2013-11-17 03:14:34 +08:00
|
|
|
|
|
|
|
<td class='user'>{{#if flaggedPost.user}}{{#link-to 'adminUser' flaggedPost.user}}{{avatar flaggedPost.user imageSize="small"}}{{/link-to}}{{/if}}</td>
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2013-12-10 05:27:49 +08:00
|
|
|
<td class='excerpt'>{{#if flaggedPost.topicHidden}}<i title='{{i18n topic_statuses.invisible.help}}' class='fa fa-eye-slash'></i> {{/if}}<h3><a href='{{unbound flaggedPost.url}}'>{{flaggedPost.title}}</a></h3><br>{{{flaggedPost.excerpt}}}
|
2013-11-17 03:14:34 +08:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class='flaggers'>
|
|
|
|
<table>
|
|
|
|
{{#each flaggedPost.flaggers}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{#link-to 'adminUser' this.user}}{{avatar this.user imageSize="small"}} {{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-01-18 04:23:51 +08:00
|
|
|
{{unboundDate this.flaggedAt}}
|
2013-11-17 03:14:34 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{this.flagType}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|
|
|
|
</td>
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
</tr>
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
{{#each flaggedPost.messages}}
|
2013-06-26 15:01:39 +08:00
|
|
|
<tr>
|
2013-11-17 03:14:34 +08:00
|
|
|
<td></td>
|
|
|
|
<td class='message'>
|
|
|
|
<div>
|
|
|
|
{{#unless bySystemUser}}
|
2013-11-23 00:13:54 +08:00
|
|
|
{{#link-to 'adminUser' user}}{{avatar user imageSize="small"}}{{/link-to}}
|
|
|
|
{{message}}
|
2013-12-10 05:27:49 +08:00
|
|
|
<a href="{{unbound permalink}}"><button class='btn'><i class="fa fa-reply"></i> {{i18n admin.flags.view_message}}</button></a>
|
2013-11-23 00:13:54 +08:00
|
|
|
{{else}}
|
|
|
|
<b>{{i18n admin.flags.system}}</b>:
|
|
|
|
{{message}}
|
2013-11-17 03:14:34 +08:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
2013-06-26 15:01:39 +08:00
|
|
|
</td>
|
2013-11-17 03:14:34 +08:00
|
|
|
<td></td>
|
|
|
|
<td></td>
|
2013-06-26 15:01:39 +08:00
|
|
|
</tr>
|
2013-11-17 03:14:34 +08:00
|
|
|
{{/each}}
|
2013-06-21 15:12:17 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
<tr>
|
|
|
|
<td colspan="4" class="action">
|
|
|
|
{{#if adminActiveFlagsView}}
|
|
|
|
{{#if flaggedPost.postHidden}}
|
2013-12-10 05:27:49 +08:00
|
|
|
<button title='{{i18n admin.flags.disagree_unhide_title}}' class='btn' {{action disagreeFlags flaggedPost}}><i class="fa fa-thumbs-o-down"></i> {{i18n admin.flags.disagree_unhide}}</button>
|
|
|
|
<button title='{{i18n admin.flags.defer_title}}' class='btn' {{action deferFlags flaggedPost}}><i class="fa fa-external-link"></i> {{i18n admin.flags.defer}}</button>
|
2013-11-17 03:14:34 +08:00
|
|
|
{{else}}
|
2013-12-10 05:27:49 +08:00
|
|
|
<button title='{{i18n admin.flags.agree_hide_title}}' class='btn' {{action agreeFlags flaggedPost}}><i class="fa fa-thumbs-o-up"></i> {{i18n admin.flags.agree_hide}}</button>
|
|
|
|
<button title='{{i18n admin.flags.disagree_title}}' class='btn' {{action disagreeFlags flaggedPost}}><i class="fa fa-thumbs-o-down"></i> {{i18n admin.flags.disagree}}</button>
|
2013-11-17 03:14:34 +08:00
|
|
|
{{/if}}
|
2013-06-05 22:24:50 +08:00
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
{{#if flaggedPost.canDeleteAsSpammer}}
|
2013-12-10 05:27:49 +08:00
|
|
|
<button title='{{i18n admin.flags.delete_spammer_title}}' class="btn" {{action deleteSpammer flaggedPost}}><i class="fa fa-exclamation-triangle"></i> {{i18n flagging.delete_spammer}}</button>
|
2013-11-17 03:14:34 +08:00
|
|
|
{{/if}}
|
2013-06-21 15:29:54 +08:00
|
|
|
|
2013-12-10 05:27:49 +08:00
|
|
|
<button title='{{i18n admin.flags.delete_post_title}}' class='btn' {{action deletePost flaggedPost}}><i class="fa fa-trash-o"></i> {{i18n admin.flags.delete_post}}</button>
|
2013-07-27 03:40:08 +08:00
|
|
|
{{/if}}
|
2013-11-17 03:14:34 +08:00
|
|
|
</td>
|
|
|
|
</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>
|