mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
12d85966c2
no issue - CSS that was used to fix positioning of the dropdown menus on the labs theme list was too liberal. Fixed by adding a specific class for the theme list dropdowns
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>
|
|
<GhBasicDropdown @verticalPosition="below" @horizontalPosition="right" @buttonPosition="right" as |dd|>
|
|
<dd.Trigger class="gh-btn gh-btn-icon gh-btn-white"><span>{{svg-jar "dotdotdot"}}</span></dd.Trigger>
|
|
|
|
<dd.Content class="relative-dropdown-menu">
|
|
<ul class="dropdown-menu">
|
|
{{#unless theme.active}}
|
|
<li><button type="button" {{on "click" (fn this.activateTheme theme.model dd)}} class="darkgrey apps-configured-action-activate green-hover green-bg-hover" data-test-button="activate">Activate</button></li>
|
|
{{/unless}}
|
|
|
|
<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="red red-hover red-bg-hover" data-test-button="delete">Delete</button></li>
|
|
{{/if}}
|
|
</ul>
|
|
</dd.Content>
|
|
</GhBasicDropdown>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|