mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 04:30:45 +08:00
f1bb1db354
From ember-template-lint documentation (https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-unbound.md): ``` {{unbound}} is a legacy hold over from the days in which Ember's template engine was less performant. Its use today is vestigial, and it no longer offers performance benefits. It is also a poor practice to use it for rendering only the initial value of a property that may later change. ``` Co-Authored-By: Jarek Radosz <jradosz@gmail.com>
11 lines
371 B
Handlebars
11 lines
371 B
Handlebars
{{#if setting.textarea}}
|
|
{{textarea value=value classNames="input-setting-textarea"}}
|
|
{{else if isSecret}}
|
|
{{input type="password" value=value classNames="input-setting-string"}}
|
|
{{else}}
|
|
{{text-field value=value classNames="input-setting-string"}}
|
|
{{/if}}
|
|
|
|
{{setting-validation-message message=validationMessage}}
|
|
<div class='desc'>{{{setting.description}}}</div>
|