mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
Replace underscore with space when showing site setting names
This commit is contained in:
parent
767048cc8d
commit
dc3739d49f
|
@ -31,6 +31,15 @@ Discourse.SiteSetting = Discourse.Model.extend({
|
|||
|
||||
}.property('value'),
|
||||
|
||||
/**
|
||||
The name of the setting. Basically, underscores in the setting key are replaced with spaces.
|
||||
|
||||
@property settingName
|
||||
**/
|
||||
settingName: function() {
|
||||
return this.get('setting').replace(/\_/g, ' ');
|
||||
}.property('setting'),
|
||||
|
||||
/**
|
||||
Has the user changed the setting? If so we should save it.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class='setting-label'>
|
||||
<h3>{{unbound setting}}</h3>
|
||||
<h3>{{unbound settingName}}</h3>
|
||||
</div>
|
||||
<div class="setting-value">
|
||||
<label>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class='setting-label'>
|
||||
<h3>{{unbound setting}}</h3>
|
||||
<h3>{{unbound settingName}}</h3>
|
||||
</div>
|
||||
<div class="setting-value">
|
||||
{{combobox valueAttribute="value" content=validValues value=value none=allowsNone}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class='setting-label'>
|
||||
<h3>{{unbound setting}}</h3>
|
||||
<h3>{{unbound settingName}}</h3>
|
||||
</div>
|
||||
<div class="setting-value">
|
||||
{{textField value=value classNames="input-setting-string"}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user