Ghost/ghost/admin/app/templates/components/gh-theme-table.hbs
Kevin Ansfield 6ba865cfdd indicate folder names to tell duplicate themes apart
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
2016-08-23 16:55:32 +01:00

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}}