discourse/app/assets/javascripts/admin/templates/components/flagged-posts.hbs

26 lines
785 B
Handlebars
Raw Normal View History

{{#if flaggedPosts}}
{{#load-more selector=".flagged-post" action=(action "loadMore")}}
2016-06-22 22:32:50 +08:00
<table class="admin-flags">
<thead>
<tr>
<th class='excerpt'></th>
<th class='flaggers'>{{i18n 'admin.flags.flagged_by'}}</th>
<th class='flaggers'>{{#if showResolvedBy}}{{i18n 'admin.flags.resolved_by'}}{{/if}}</th>
2016-06-22 22:32:50 +08:00
</tr>
</thead>
<tbody>
{{#each flaggedPosts as |flaggedPost|}}
2017-09-09 04:27:07 +08:00
{{flagged-post
flaggedPost=flaggedPost
canAct=canAct
showResolvedBy=showResolvedBy
removePost=(action "removePost" flaggedPost)
2017-09-09 04:47:49 +08:00
hideTitle=topic}}
2016-06-22 22:32:50 +08:00
{{/each}}
</tbody>
</table>
{{/load-more}}
{{else}}
<p>{{i18n 'admin.flags.no_results'}}</p>
{{/if}}