Files
discourse/app/assets/javascripts/admin/templates/components/flagged-posts.hbs
2017-09-25 12:25:14 -04:00

27 lines
786 B
Handlebars

{{#if flaggedPosts}}
{{#load-more selector=".flagged-post" action=(action "loadMore")}}
<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>
</tr>
</thead>
<tbody>
{{#each flaggedPosts as |flaggedPost|}}
{{flagged-post
flaggedPost=flaggedPost
canAct=canAct
showResolvedBy=showResolvedBy
removePost=(action "removePost" flaggedPost)
hideTitle=topic}}
{{/each}}
</tbody>
</table>
{{/load-more}}
{{else}}
<p>{{i18n 'admin.flags.no_results'}}</p>
{{/if}}