2018-08-23 21:30:00 -04:00
|
|
|
<div class="themes-list-header">
|
2020-02-11 09:55:16 -05:00
|
|
|
{{d-button
|
|
|
|
action=(action "changeView")
|
|
|
|
actionParam=THEMES
|
|
|
|
class=(concat "themes-tab " "tab " (if themesTabActive "btn-danger active" ""))
|
|
|
|
label="admin.customize.theme.title"
|
|
|
|
}}
|
|
|
|
{{d-button
|
|
|
|
action=(action "changeView")
|
|
|
|
actionParam=COMPONENTS
|
|
|
|
class=(concat "components-tab " "tab " (if componentsTabActive "btn-danger active" ""))
|
|
|
|
label="admin.customize.theme.components"
|
|
|
|
icon="puzzle-piece"
|
|
|
|
}}
|
2018-08-23 21:30:00 -04:00
|
|
|
</div>
|
|
|
|
|
2018-09-09 14:48:08 -04:00
|
|
|
<div class="themes-list-container">
|
2018-08-23 21:30:00 -04:00
|
|
|
{{#if hasThemes}}
|
2019-01-23 04:20:13 -05:00
|
|
|
{{#if hasActiveThemes}}
|
|
|
|
{{#each activeThemes as |theme|}}
|
2018-09-06 14:56:00 -04:00
|
|
|
{{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
|
2018-08-30 15:23:15 -04:00
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
{{#if hasInactiveThemes}}
|
2019-01-23 04:20:13 -05:00
|
|
|
<div class="themes-list-item inactive-indicator">
|
|
|
|
<span class="empty">
|
|
|
|
{{#if themesTabActive}}
|
2020-03-11 04:23:10 -04:00
|
|
|
{{i18n "admin.customize.theme.inactive_themes"}}
|
2019-01-23 04:20:13 -05:00
|
|
|
{{else}}
|
2020-03-11 04:23:10 -04:00
|
|
|
{{i18n "admin.customize.theme.inactive_components"}}
|
2019-01-23 04:20:13 -05:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-08-30 15:23:15 -04:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2019-01-23 04:20:13 -05:00
|
|
|
|
|
|
|
{{#if hasInactiveThemes}}
|
|
|
|
{{#each inactiveThemes as |theme|}}
|
|
|
|
{{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2018-08-23 21:30:00 -04:00
|
|
|
{{else}}
|
|
|
|
<div class="themes-list-item">
|
2020-03-11 04:23:10 -04:00
|
|
|
<span class="empty">{{i18n "admin.customize.theme.empty"}}</span>
|
2018-08-23 21:30:00 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-02-07 22:27:35 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="create-actions">
|
2019-02-20 14:58:31 -05:00
|
|
|
{{d-button action=installModal icon="upload" label="admin.customize.install" class="btn-primary"}}
|
2019-02-07 22:27:35 -05:00
|
|
|
</div>
|