mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
40a48c1e99
refs https://github.com/TryGhost/Team/issues/1164 - removed flag and labs screen toggle - removed all conditionals - removed all old/unused route/controller/component files - renamed labs components and classes to non-labs naming
33 lines
2.1 KiB
Handlebars
33 lines
2.1 KiB
Handlebars
<div class="apps-grid" data-test-themes-list>
|
|
{{#each this.sortedThemes as |theme index|}}
|
|
<div class="apps-grid-cell" data-test-theme-id="{{theme.name}}" data-test-theme-active="{{theme.active}}">
|
|
<div class="apps-card-app {{if theme.active "theme-list-item--active"}}">
|
|
<div class="apps-card-meta flex-grow-1">
|
|
<h3 class="apps-card-app-title" data-test-theme-title>
|
|
{{theme.label}}
|
|
{{#if theme.active}}<span class="gh-badge gh-badge-green">Active</span>{{/if}}
|
|
</h3>
|
|
<p class="apps-card-app-desc" data-test-theme-description><span class="description">Version {{theme.version}}</span></p>
|
|
</div>
|
|
{{#unless theme.active}}
|
|
<button type="button" {{on "click" (fn this.activateTheme theme.model dd)}} class="apps-configured-action darkgrey apps-configured-action-activate green-hover green-bg-hover" data-test-button="activate">Activate</button>
|
|
{{/unless}}
|
|
<GhBasicDropdown @verticalPosition="below" @horizontalPosition="right" @buttonPosition="right" as |dd|>
|
|
<dd.Trigger class="gh-btn gh-btn-icon" data-test-button="actions"><span>{{svg-jar "dotdotdot"}}</span></dd.Trigger>
|
|
|
|
<dd.Content class="relative-dropdown-menu">
|
|
<ul class="dropdown-menu" data-test-actions-for={{theme.name}}>
|
|
|
|
<li><button type="button" {{on "click" (fn this.downloadTheme theme.name dd)}} class="darkgrey darkgrey-hover lightgrey-bg-hover" data-test-button="download">Download</button></li>
|
|
|
|
{{#if theme.isDeletable}}
|
|
<li><button type="button" {{on "click" (fn this.deleteTheme theme.model dd)}} disabled={{theme.active}} class="gh-list-delete" data-test-button="delete">Delete</button></li>
|
|
{{/if}}
|
|
</ul>
|
|
</dd.Content>
|
|
</GhBasicDropdown>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|