2018-08-24 04:30:00 +03:00
|
|
|
<div class="themes-list-header">
|
2018-08-30 22:23:15 +03:00
|
|
|
<div {{action "changeView" THEMES}} class="themes-tab tab {{if themesTabActive 'active' ''}}">
|
|
|
|
{{d-icon "cube"}}
|
|
|
|
{{I18n "admin.customize.theme.title"}}
|
|
|
|
</div><div {{action "changeView" COMPONENTS}} class="components-tab tab {{if componentsTabActive 'active' ''}}">
|
|
|
|
{{I18n "admin.customize.theme.components"}}
|
|
|
|
</div>
|
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}}
|
2018-08-30 22:23:15 +03:00
|
|
|
{{#if componentsTabActive}}
|
|
|
|
{{#each themesList 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}}
|
|
|
|
{{else}}
|
|
|
|
{{#if hasUserThemes}}
|
|
|
|
{{#each userThemes 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}}
|
|
|
|
<div class="themes-list-item inactive-indicator">
|
|
|
|
<span class="empty">{{I18n "admin.customize.theme.inactive_themes"}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if hasInactiveThemes}}
|
|
|
|
{{#each inactiveThemes 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}}
|
|
|
|
{{/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}}
|
|
|
|
</div>
|