mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
6ba865cfdd
refs https://github.com/TryGhost/Ghost-Admin/pull/210 - removes unused `activeTheme` property on `gh-theme-table` - updates label generation in `gh-theme-table` to add folder names when there are duplicate package.json name+version combos
33 lines
1.2 KiB
Handlebars
33 lines
1.2 KiB
Handlebars
{{#if themes}}
|
|
<div class="theme-list">
|
|
{{#each themes as |theme|}}
|
|
<div class="theme-list-item {{if theme.active "theme-list-item--active"}}">
|
|
<div class="theme-list-item-body">
|
|
<span class="name">{{theme.label}}</span>
|
|
</div>
|
|
<div class="theme-list-item-aside">
|
|
{{#if theme.isDeletable}}
|
|
<a href="#" {{action deleteTheme theme}} disabled={{theme.active}} class="theme-list-action">
|
|
Delete
|
|
</a>
|
|
{{/if}}
|
|
|
|
<a href="#" {{action downloadTheme theme}} class="theme-list-action">
|
|
Download
|
|
</a>
|
|
|
|
{{#if theme.active}}
|
|
<span class="theme-list-action theme-list-action-activate">Active</span>
|
|
{{else}}
|
|
<a href="#" {{action activateTheme theme}} class="theme-list-action theme-list-action-activate">
|
|
Activate
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{else}}
|
|
No theme found!
|
|
{{/if}}
|