2017-09-06 22:21:07 +08:00
|
|
|
{{plugin-outlet name="flagged-topics-before" noTags=true args=(hash flaggedTopics=flaggedTopics)}}
|
|
|
|
|
2018-05-04 22:24:18 +08:00
|
|
|
{{#if flaggedTopics}}
|
2018-07-03 11:14:53 +08:00
|
|
|
<table class='flagged-topics grid'>
|
2018-05-04 22:24:18 +08:00
|
|
|
<thead>
|
|
|
|
{{plugin-outlet name="flagged-topic-header-row" noTags=true}}
|
|
|
|
<th>{{i18n "admin.flags.flagged_topics.topic"}} </th>
|
|
|
|
<th>{{i18n "admin.flags.flagged_topics.type"}}</th>
|
|
|
|
<th>{{I18n "admin.flags.flagged_topics.users"}}</th>
|
|
|
|
<th>{{i18n "admin.flags.flagged_topics.last_flagged"}}</th>
|
|
|
|
<th></th>
|
|
|
|
</thead>
|
2018-07-03 11:14:53 +08:00
|
|
|
<tbody>
|
2018-05-04 22:24:18 +08:00
|
|
|
{{#each flaggedTopics as |ft|}}
|
|
|
|
<tr class='flagged-topic'>
|
|
|
|
{{plugin-outlet name="flagged-topic-row" noTags=true args=(hash topic=ft.topic)}}
|
2017-09-06 22:21:07 +08:00
|
|
|
|
2018-05-04 22:24:18 +08:00
|
|
|
<td class="topic-title">
|
|
|
|
<a href={{ft.topic.relative_url}} target="_blank">{{replace-emoji ft.topic.fancy_title}}</a>
|
|
|
|
</td>
|
2018-07-03 11:14:53 +08:00
|
|
|
<td class="flag-counts">
|
2018-05-04 22:24:18 +08:00
|
|
|
{{#each ft.flag_counts as |fc|}}
|
|
|
|
<div class='flag-counts'>
|
|
|
|
<span class='type-name'>{{post-action-title fc.post_action_type_id fc.name_key}}</span>
|
|
|
|
<span class='type-count'>x{{fc.count}}</span>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</td>
|
|
|
|
<td class='flagged-topic-users'>
|
|
|
|
{{flagged-topic-users users=ft.users tagName=""}}
|
|
|
|
</td>
|
2018-07-03 11:14:53 +08:00
|
|
|
<td class="last-flagged">
|
2018-05-04 22:24:18 +08:00
|
|
|
{{format-age ft.last_flag_at}}
|
|
|
|
</td>
|
2018-07-03 11:14:53 +08:00
|
|
|
<td class="flag-details">
|
2018-05-04 22:24:18 +08:00
|
|
|
{{#link-to
|
|
|
|
"adminFlags.topics.show"
|
|
|
|
ft.id
|
|
|
|
class="btn d-button no-text btn-small btn-primary show-details"
|
|
|
|
title=(i18n "admin.flags.show_details")}}
|
|
|
|
{{d-icon "list"}}
|
|
|
|
{{i18n "admin.flags.details"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2018-07-03 11:14:53 +08:00
|
|
|
</tbody>
|
2018-05-04 22:24:18 +08:00
|
|
|
</table>
|
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.flags.flagged_topics.no_results"}}
|
|
|
|
{{/if}}
|