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

18 lines
498 B
Handlebars

{{#if flaggedPosts}}
{{#load-more selector=".flagged-post" action=(action "loadMore")}}
<div class='flagged-posts'>
{{#each flaggedPosts as |flaggedPost|}}
{{flagged-post
flaggedPost=flaggedPost
filter=filter
topic=topic
showResolvedBy=showResolvedBy
removePost=(action "removePost" flaggedPost)
hideTitle=topic}}
{{/each}}
</div>
{{/load-more}}
{{else}}
<p>{{i18n 'admin.flags.no_results'}}</p>
{{/if}}