mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +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'),
|
}.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.
|
Has the user changed the setting? If so we should save it.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class='setting-label'>
|
<div class='setting-label'>
|
||||||
<h3>{{unbound setting}}</h3>
|
<h3>{{unbound settingName}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
<label>
|
<label>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class='setting-label'>
|
<div class='setting-label'>
|
||||||
<h3>{{unbound setting}}</h3>
|
<h3>{{unbound settingName}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
{{combobox valueAttribute="value" content=validValues value=value none=allowsNone}}
|
{{combobox valueAttribute="value" content=validValues value=value none=allowsNone}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class='setting-label'>
|
<div class='setting-label'>
|
||||||
<h3>{{unbound setting}}</h3>
|
<h3>{{unbound settingName}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
{{textField value=value classNames="input-setting-string"}}
|
{{textField value=value classNames="input-setting-string"}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user