mirror of
https://github.com/discourse/discourse.git
synced 2025-01-10 01:38:33 +08:00
16ea7ab248
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
32 lines
1.1 KiB
Handlebars
32 lines
1.1 KiB
Handlebars
<div class="setting-label">
|
|
<h3>
|
|
{{#if staffLogFilter}}
|
|
{{settingName}}
|
|
<LinkTo @route="adminLogs.staffActionLogs" @query={{hash filters=staffLogFilter force_refresh=true}} @title={{i18n "admin.settings.history"}}>
|
|
<span class="history-icon">
|
|
{{d-icon "history"}}
|
|
</span>
|
|
</LinkTo>
|
|
{{else}}
|
|
{{settingName}}
|
|
{{/if}}
|
|
</h3>
|
|
{{#if defaultIsAvailable}}
|
|
<a href onClick={{action "setDefaultValues"}}>{{setting.setDefaultValuesLabel}}</a>
|
|
{{/if}}
|
|
</div>
|
|
<div class="setting-value">
|
|
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage preview=preview isSecret=isSecret allowAny=allowAny}}
|
|
</div>
|
|
{{#if dirty}}
|
|
<div class="setting-controls">
|
|
<DButton @class="ok" @action={{action "update"}} @icon="check" />
|
|
<DButton @class="cancel" @action={{action "cancel"}} @icon="times" />
|
|
</div>
|
|
{{else if setting.overridden}}
|
|
{{#if setting.secret}}
|
|
<DButton @action={{action "toggleSecret"}} @icon="far-eye-slash" />
|
|
{{/if}}
|
|
<DButton @class="btn-default undo" @action={{action "resetDefault"}} @icon="undo" @label="admin.settings.reset" />
|
|
{{/if}}
|