2014-11-11 15:48:13 -05:00
|
|
|
{{#if length}}
|
|
|
|
<table class='admin-flags'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class='user'></th>
|
|
|
|
<th class='excerpt'></th>
|
2014-12-08 16:35:49 -05:00
|
|
|
<th class='flaggers'>{{i18n 'admin.flags.flagged_by'}}</th>
|
|
|
|
<th class='flaggers'>{{#if adminOldFlagsView}}{{i18n 'admin.flags.resolved_by'}}{{/if}}</th>
|
2014-11-11 15:48:13 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each flaggedPost in content}}
|
|
|
|
<tr {{bind-attr class="flaggedPost.extraClasses"}}>
|
|
|
|
|
|
|
|
<td class='user'>
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{#if flaggedPost.user}}
|
|
|
|
{{#link-to 'adminUser' flaggedPost.user}}{{avatar flaggedPost.user imageSize="small"}}{{/link-to}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{#if flaggedPost.wasEdited}}<i class="fa fa-pencil" title="{{i18n 'admin.flags.was_edited'}}"></i>{{/if}}
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if adminActiveFlagsView}}
|
|
|
|
{{#if flaggedPost.previous_flags_count}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<span title="{{i18n 'admin.flags.previous_flags_count' count=flaggedPost.previous_flags_count}}" class="badge-notification flagged-posts">{{flaggedPost.previous_flags_count}}</span>
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class='excerpt'>
|
|
|
|
<h3>
|
|
|
|
{{#if flaggedPost.topic.isPrivateMessage}}
|
2015-01-07 12:14:31 -05:00
|
|
|
<span class="private-message-glyph">{{fa-icon "envelope"}}</span>
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
|
|
|
{{topic-status topic=flaggedPost.topic}}
|
2015-08-28 06:31:32 -04:00
|
|
|
<a href='{{unbound flaggedPost.url}}'>{{{unbound flaggedPost.topic.fancyTitle}}}</a>
|
2014-11-11 15:48:13 -05:00
|
|
|
</h3>
|
|
|
|
{{#if flaggedPost.postAuthorFlagged}}
|
|
|
|
{{{flaggedPost.excerpt}}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class='flaggers'>
|
|
|
|
<table>
|
|
|
|
<tbody>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#each flagger in flaggedPost.flaggers}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<tr>
|
|
|
|
<td class='avatar'>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#link-to 'adminUser' flagger.user}}
|
|
|
|
{{avatar flagger.user imageSize="small"}}
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#link-to 'adminUser' flagger.user}}
|
|
|
|
{{flagger.user.username}}
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/link-to}}
|
2014-12-12 13:28:20 -05:00
|
|
|
{{format-age flagger.flaggedAt}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<br />
|
2014-12-12 13:28:20 -05:00
|
|
|
{{flagger.flagType}}
|
2014-11-11 15:48:13 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class='flaggers result'>
|
|
|
|
{{#if adminOldFlagsView}}
|
|
|
|
<table>
|
|
|
|
<tbody>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#each flagger in flaggedPost.flaggers}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<tr>
|
|
|
|
<td class='avatar'>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#link-to 'adminUser' flagger.disposedBy}}
|
|
|
|
{{avatar flagger.disposedBy imageSize="small"}}
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{format-age flagger.disposedAt}}
|
|
|
|
{{{flagger.dispositionIcon}}}
|
|
|
|
{{#if flagger.tookAction}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<i class='fa fa-gavel' title='{{i18n 'admin.flags.took_action'}}'></i>
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{{#if flaggedPost.topicFlagged}}
|
|
|
|
<tr class='message'>
|
|
|
|
<td></td>
|
|
|
|
<td colspan="3">
|
|
|
|
<div>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{{i18n 'admin.flags.topic_flagged'}}} <a href='{{unbound flaggedPost.url}}' class="btn">{{i18n 'admin.flags.visit_topic'}}</a>
|
2014-11-11 15:48:13 -05:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#each c in flaggedPost.conversations}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<tr class='message'>
|
|
|
|
<td></td>
|
|
|
|
<td colspan="3">
|
|
|
|
<div>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#if c.response}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<p>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#link-to 'adminUser' c.response.user}}{{avatar c.response.user imageSize="small"}}{{/link-to}} {{{c.response.excerpt}}}
|
2014-11-11 15:48:13 -05:00
|
|
|
</p>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#if c.reply}}
|
2014-11-11 15:48:13 -05:00
|
|
|
<p>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#link-to 'adminUser' c.reply.user}}{{avatar c.reply.user imageSize="small"}}{{/link-to}} {{{c.reply.excerpt}}}
|
|
|
|
{{#if c.hasMore}}
|
|
|
|
<a href="{{unbound c.permalink}}">{{i18n 'admin.flags.more'}}</a>
|
2014-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
2014-12-12 13:28:20 -05:00
|
|
|
<a href="{{unbound c.permalink}}">
|
2014-12-08 16:35:49 -05:00
|
|
|
<button class='btn btn-reply'><i class="fa fa-reply"></i> {{i18n 'admin.flags.reply_message'}}</button>
|
2014-11-11 15:48:13 -05:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="4" class="action">
|
|
|
|
{{#if adminActiveFlagsView}}
|
2014-12-08 16:35:49 -05: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-11-11 15:48:13 -05:00
|
|
|
{{#if flaggedPost.postHidden}}
|
2014-12-08 16:35:49 -05: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-11-11 15:48:13 -05:00
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05: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-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
2014-12-08 16:35:49 -05: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>
|
|
|
|
<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-11-11 15:48:13 -05:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2015-04-28 17:05:06 -04:00
|
|
|
{{conditional-loading-spinner condition=view.loading}}
|
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}}
|