2018-08-24 04:30:00 +03:00
|
|
|
<div class="themes-list-header">
|
2022-10-08 01:06:20 +02:00
|
|
|
<DButton
|
2023-08-31 11:49:35 +02:00
|
|
|
@action={{fn this.changeView this.THEMES}}
|
2022-10-08 01:06:20 +02:00
|
|
|
@label="admin.customize.theme.title"
|
2023-08-31 11:49:35 +02:00
|
|
|
class={{concat-class "themes-tab" "tab" (if this.themesTabActive "active")}}
|
2022-10-08 01:06:20 +02:00
|
|
|
/>
|
|
|
|
<DButton
|
2023-08-31 11:49:35 +02:00
|
|
|
@action={{fn this.changeView this.COMPONENTS}}
|
2022-10-08 01:06:20 +02:00
|
|
|
@label="admin.customize.theme.components"
|
|
|
|
@icon="puzzle-piece"
|
2023-08-31 11:49:35 +02:00
|
|
|
class={{concat-class
|
|
|
|
"components-tab"
|
|
|
|
"tab"
|
|
|
|
(if this.componentsTabActive "active")
|
|
|
|
}}
|
2022-10-08 01:06:20 +02:00
|
|
|
/>
|
2018-08-24 04:30:00 +03:00
|
|
|
</div>
|
|
|
|
|
2018-09-09 21:48:08 +03:00
|
|
|
<div class="themes-list-container">
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.showFilter}}
|
2021-07-19 04:33:58 +03:00
|
|
|
<div class="themes-list-filter themes-list-item">
|
2022-07-06 10:37:54 +02:00
|
|
|
<Input
|
|
|
|
class="filter-input"
|
|
|
|
placeholder={{i18n "admin.customize.theme.filter_placeholder"}}
|
|
|
|
autocomplete="off"
|
|
|
|
@type="search"
|
|
|
|
@value={{mut this.filterTerm}}
|
|
|
|
/>
|
2021-07-19 04:33:58 +03:00
|
|
|
{{d-icon "search"}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.hasThemes}}
|
|
|
|
{{#if this.hasActiveThemes}}
|
|
|
|
{{#each this.activeThemes as |theme|}}
|
2022-06-30 12:30:50 +02:00
|
|
|
<ThemesListItem
|
|
|
|
@theme={{theme}}
|
|
|
|
@navigateToTheme={{action "navigateToTheme" theme}}
|
|
|
|
/>
|
2018-08-30 22:23:15 +03:00
|
|
|
{{/each}}
|
|
|
|
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.hasInactiveThemes}}
|
2019-01-23 09:20:13 +00:00
|
|
|
<div class="themes-list-item inactive-indicator">
|
|
|
|
<span class="empty">
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.themesTabActive}}
|
2020-03-11 09:23:10 +01:00
|
|
|
{{i18n "admin.customize.theme.inactive_themes"}}
|
2019-01-23 09:20:13 +00:00
|
|
|
{{else}}
|
2020-03-11 09:23:10 +01:00
|
|
|
{{i18n "admin.customize.theme.inactive_components"}}
|
2019-01-23 09:20:13 +00:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-08-30 22:23:15 +03:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2019-01-23 09:20:13 +00:00
|
|
|
|
2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.hasInactiveThemes}}
|
|
|
|
{{#each this.inactiveThemes as |theme|}}
|
2022-06-30 12:30:50 +02:00
|
|
|
<ThemesListItem
|
2023-03-10 15:15:31 -05:00
|
|
|
@classNames="inactive-theme"
|
2022-06-30 12:30:50 +02:00
|
|
|
@theme={{theme}}
|
|
|
|
@navigateToTheme={{action "navigateToTheme" theme}}
|
|
|
|
/>
|
2019-01-23 09:20:13 +00:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2018-08-24 04:30:00 +03:00
|
|
|
{{else}}
|
|
|
|
<div class="themes-list-item">
|
2020-03-11 09:23:10 +01:00
|
|
|
<span class="empty">{{i18n "admin.customize.theme.empty"}}</span>
|
2018-08-24 04:30:00 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-02-07 22:27:35 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="create-actions">
|
2022-07-05 10:41:31 -07:00
|
|
|
<DButton
|
|
|
|
@action={{this.installModal}}
|
|
|
|
@icon="upload"
|
|
|
|
@label="admin.customize.install"
|
2023-08-31 11:49:35 +02:00
|
|
|
class="btn-primary"
|
2022-07-05 10:41:31 -07:00
|
|
|
/>
|
2019-02-07 22:27:35 -05:00
|
|
|
</div>
|