discourse/app/assets/javascripts/admin/templates/components/themes-list.hbs

47 lines
1.4 KiB
Handlebars
Raw Normal View History

<div class="themes-list-header">
2018-08-30 15:23:15 -04:00
<div {{action "changeView" THEMES}} class="themes-tab tab {{if themesTabActive 'active' ''}}">
{{I18n "admin.customize.theme.title"}}
</div><div {{action "changeView" COMPONENTS}} class="components-tab tab {{if componentsTabActive 'active' ''}}">
{{d-icon "puzzle-piece"}}
2018-08-30 15:23:15 -04:00
{{I18n "admin.customize.theme.components"}}
</div>
</div>
2018-09-09 14:48:08 -04:00
<div class="themes-list-container">
{{#if hasThemes}}
{{#if hasActiveThemes}}
{{#each activeThemes as |theme|}}
{{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
2018-08-30 15:23:15 -04:00
{{/each}}
{{#if hasInactiveThemes}}
<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 15:23:15 -04:00
{{/if}}
{{/if}}
{{#if hasInactiveThemes}}
{{#each inactiveThemes as |theme|}}
{{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
{{/each}}
{{/if}}
{{else}}
<div class="themes-list-item">
<span class="empty">{{I18n "admin.customize.theme.empty"}}</span>
</div>
{{/if}}
</div>
<div class="create-actions">
{{d-button action=installModal icon="upload" label="admin.customize.install" class="btn-primary"}}
</div>