discourse/app/assets/javascripts/admin/templates/modal/admin-agree-flag.hbs
2017-09-25 12:25:14 -04:00

36 lines
1.0 KiB
Handlebars

{{#d-modal-body title="admin.flags.agree_flag_modal_title"}}
{{#if model.user_deleted}}
{{d-button
title="admin.flags.agree_flag_restore_post_title"
class="confirm-agree-restore"
action=(action "perform" "restore")
icon="eye"
label="admin.flags.agree_flag_restore_post"}}
{{else}}
{{#unless model.postHidden}}
{{d-button
title="admin.flags.agree_flag_hide_post_title"
action=(action "perform" "hide")
class="confirm-agree-hide"
icon="eye-slash"
label="admin.flags.agree_flag_hide_post"}}
{{/unless}}
{{/if}}
{{d-button
title="admin.flags.agree_flag_title"
action=(action "perform" "keep")
class="confirm-agree-keep"
icon="thumbs-o-up"
label="admin.flags.agree_flag"}}
{{#if canDeleteSpammer}}
{{d-button
title="admin.flags.delete_spammer_title"
action="deleteSpammer"
class="btn-danger delete-spammer"
icon="exclamation-triangle"
label="admin.flags.delete_spammer"}}
{{/if}}
{{/d-modal-body}}