mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
21 lines
1.0 KiB
Handlebars
21 lines
1.0 KiB
Handlebars
<div class="gh-stack">
|
|
<form>
|
|
{{#each @themeSettings as |setting index|}}
|
|
{{#if (eq setting.type "select")}}
|
|
<CustomThemeSettings::Select @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "boolean")}}
|
|
<CustomThemeSettings::Boolean @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "color")}}
|
|
<CustomThemeSettings::Color @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "text")}}
|
|
<CustomThemeSettings::Text @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "image")}}
|
|
<CustomThemeSettings::Image @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{/each}}
|
|
</form>
|
|
</div> |