2018-08-24 04:30:00 +03:00
|
|
|
<div class="themes-list-header">
|
2020-02-11 15:55:16 +01: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-24 04:30:00 +03:00
|
|
|
</div>
|
|
|
|
|
2018-09-09 21:48:08 +03:00
|
|
|
<div class="themes-list-container">
|
2018-08-24 04:30:00 +03:00
|
|
|
{{#if hasThemes}}
|
2019-01-23 09:20:13 +00:00
|
|
|
{{#if hasActiveThemes}}
|
|
|
|
{{#each activeThemes as |theme|}}
|
2018-09-06 21:56:00 +03:00
|
|
|
{{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
|
2018-08-30 22:23:15 +03:00
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
{{#if hasInactiveThemes}}
|
2019-01-23 09:20:13 +00:00
|
|
|
<div class="themes-list-item inactive-indicator">
|
|
|
|
<span class="empty">
|
|
|
|
{{#if themesTabActive}}
|
|
|
|
{{I18n "admin.customize.theme.inactive_themes"}}
|
|
|
|
{{else}}
|
|
|
|
{{I18n "admin.customize.theme.inactive_components"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-08-30 22:23:15 +03:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2019-01-23 09:20:13 +00:00
|
|
|
|
|
|
|
{{#if hasInactiveThemes}}
|
|
|
|
{{#each inactiveThemes as |theme|}}
|
|
|
|
{{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2018-08-24 04:30:00 +03:00
|
|
|
{{else}}
|
|
|
|
<div class="themes-list-item">
|
|
|
|
<span class="empty">{{I18n "admin.customize.theme.empty"}}</span>
|
|
|
|
</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>
|