discourse/app/assets/javascripts/admin/templates/modal/admin-agree-flag.hbs

36 lines
1.0 KiB
Handlebars
Raw Normal View History

2016-11-15 17:09:55 -05:00
{{#d-modal-body title="admin.flags.agree_flag_modal_title"}}
{{#if model.user_deleted}}
2017-09-11 10:31:38 -04:00
{{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"}}
2016-11-15 17:09:55 -05:00
{{else}}
{{#unless model.postHidden}}
2017-09-11 10:31:38 -04:00
{{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"}}
2016-11-15 17:09:55 -05:00
{{/unless}}
{{/if}}
2017-09-11 10:31:38 -04:00
{{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}}
2017-09-11 10:31:38 -04:00
{{d-button
title="admin.flags.delete_spammer_title"
action="deleteSpammer"
2017-09-11 10:31:38 -04:00
class="btn-danger delete-spammer"
icon="exclamation-triangle"
label="admin.flags.delete_spammer"}}
2016-11-15 17:09:55 -05:00
{{/if}}
{{/d-modal-body}}