mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 06:53:46 +08:00
14 lines
1017 B
Handlebars
14 lines
1017 B
Handlebars
{{#d-modal-body title="admin.flags.agree_flag_modal_title"}}
|
|
{{#if model.user_deleted}}
|
|
<button title={{i18n 'admin.flags.agree_flag_restore_post_title'}} {{action "agreeFlagRestorePost"}} class="btn">{{d-icon "thumbs-o-up"}}{{d-icon "eye"}}{{i18n 'admin.flags.agree_flag_restore_post'}}</button>
|
|
{{else}}
|
|
{{#unless model.postHidden}}
|
|
<button title="{{i18n 'admin.flags.agree_flag_hide_post_title'}}" {{action "agreeFlagHidePost"}} class="btn">{{d-icon "thumbs-o-up"}}{{d-icon "eye-slash"}}{{i18n 'admin.flags.agree_flag_hide_post'}}</button>
|
|
{{/unless}}
|
|
{{/if}}
|
|
<button title="{{i18n 'admin.flags.agree_flag_title'}}" {{action "agreeFlagKeepPost"}} class="btn">{{d-icon "thumbs-o-up"}}{{i18n 'admin.flags.agree_flag'}}</button>
|
|
{{#if model.canDeleteAsSpammer}}
|
|
<button title="{{i18n 'admin.flags.delete_spammer_title'}}" {{action "deleteSpammer" model.user}} class="btn btn-danger">{{d-icon "exclamation-triangle"}}{{i18n 'admin.flags.delete_spammer'}}</button>
|
|
{{/if}}
|
|
{{/d-modal-body}}
|