mirror of
https://github.com/discourse/discourse.git
synced 2025-09-03 08:39:21 +08:00
If there are no settings do now show section
This commit is contained in:
parent
2c25b9ae12
commit
95555b5ec8
1 changed files with 5 additions and 7 deletions
|
@ -105,16 +105,14 @@
|
||||||
{{#d-button action="addUploadModal" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
{{#d-button action="addUploadModal" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{{#if hasSettings}}
|
||||||
<h3>{{i18n "admin.customize.theme.theme_settings"}}</h3>
|
<h3>{{i18n "admin.customize.theme.theme_settings"}}</h3>
|
||||||
{{#d-section class="form-horizontal theme settings"}}
|
{{#d-section class="form-horizontal theme settings"}}
|
||||||
{{#if hasSettings}}
|
{{#each settings as |setting|}}
|
||||||
{{#each settings as |setting|}}
|
{{theme-setting setting=setting model=model class="theme-setting"}}
|
||||||
{{theme-setting setting=setting model=model class="theme-setting"}}
|
{{/each}}
|
||||||
{{/each}}
|
|
||||||
{{else}}
|
|
||||||
{{i18n "admin.customize.theme.no_settings"}}
|
|
||||||
{{/if}}
|
|
||||||
{{/d-section}}
|
{{/d-section}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if availableChildThemes}}
|
{{#if availableChildThemes}}
|
||||||
<h3>{{i18n "admin.customize.theme.theme_components"}}</h3>
|
<h3>{{i18n "admin.customize.theme.theme_components"}}</h3>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue