2018-08-23 21:30:00 -04:00
|
|
|
<div class="themes-list-header">
|
2018-08-30 15:23:15 -04: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-23 21:30:00 -04:00
|
|
|
</div>
|
|
|
|
|
2018-08-30 15:23:15 -04:00
|
|
|
<div class="themes-list-container" style="max-height: 485px;">
|
2018-08-23 21:30:00 -04:00
|
|
|
{{#if hasThemes}}
|
2018-08-30 15:23:15 -04:00
|
|
|
{{#if componentsTabActive}}
|
|
|
|
{{#each themesList as |theme|}}
|
|
|
|
{{themes-list-item theme=theme}}
|
|
|
|
{{/each}}
|
|
|
|
{{else}}
|
|
|
|
{{#if hasUserThemes}}
|
|
|
|
{{#each userThemes as |theme|}}
|
|
|
|
{{themes-list-item theme=theme}}
|
|
|
|
{{/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|}}
|
|
|
|
{{themes-list-item theme=theme}}
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2018-08-23 21:30:00 -04:00
|
|
|
{{else}}
|
|
|
|
<div class="themes-list-item">
|
|
|
|
<span class="empty">{{I18n "admin.customize.theme.empty"}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|