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

15 lines
503 B
Handlebars
Raw Normal View History

2015-03-03 01:12:19 +08:00
<div class='setting-label'>
<h3>{{unbound settingName}}</h3>
</div>
<div class="setting-value">
2016-04-01 05:33:25 +08:00
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage}}
2015-03-03 01:12:19 +08:00
</div>
{{#if dirty}}
<div class='setting-controls'>
{{d-button class="ok" action="save" icon="check"}}
{{d-button class="cancel" action="cancel" icon="times"}}
2015-03-03 01:12:19 +08:00
</div>
{{else if setting.overridden}}
{{d-button action="resetDefault" icon="undo" label="admin.site_settings.reset"}}
2015-03-03 01:12:19 +08:00
{{/if}}