mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Re-lands #16119 and #17298 * Update eslint-config-discourse * Update linting workflow * Prettier-ignore stuff * Update template-lint config * Auto-fix template issues * Fix various template issues Mostly incorrect attributes and unused templates * Prettier js files * Fix template auto-fix regressions * Small css tweak Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
13 lines
582 B
Handlebars
13 lines
582 B
Handlebars
{{#if this.setting.textarea}}
|
|
<Textarea @value={{this.value}} class="input-setting-textarea" />
|
|
{{else if this.setting.json_schema}}
|
|
<DButton @action={{action "launchJsonEditorModal"}} @icon="pencil-alt" @label="admin.site_settings.json_schema.edit" />
|
|
{{else if this.isSecret}}
|
|
<Input @type="password" @value={{this.value}} class="input-setting-string" />
|
|
{{else}}
|
|
<TextField @value={{this.value}} @classNames="input-setting-string" />
|
|
{{/if}}
|
|
|
|
<SettingValidationMessage @message={{this.validationMessage}} />
|
|
<div class="desc">{{html-safe this.setting.description}}</div>
|