discourse/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.1 KiB
Handlebars
Raw Normal View History

2015-03-02 12:12:19 -05:00
<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}}
2015-03-02 12:12:19 -05:00
</div>
<div class="setting-value">
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage preview=preview isSecret=isSecret allowAny=allowAny}}
2015-03-02 12:12:19 -05:00
</div>
{{#if dirty}}
<div class="setting-controls">
<DButton @class="ok" @action={{action "update"}} @icon="check" />
<DButton @class="cancel" @action={{action "cancel"}} @icon="times" />
2015-03-02 12:12:19 -05:00
</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" />
2015-03-02 12:12:19 -05:00
{{/if}}