2019-02-21 03:58:31 +08:00
|
|
|
<div class="popular-theme-item">
|
|
|
|
<div class="popular-theme-name">
|
|
|
|
{{theme.name}}
|
|
|
|
{{#if theme.preview}}
|
2020-03-07 00:35:18 +08:00
|
|
|
<a href="{{theme.preview}}" title="Preview" rel="noopener" target="_blank">{{d-icon "far-eye"}}</a>
|
2019-02-21 03:58:31 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="popular-theme-buttons">
|
|
|
|
{{#if theme.installed}}
|
|
|
|
<span>{{I18n "admin.customize.theme.installed"}}</span>
|
|
|
|
{{else}}
|
|
|
|
{{d-button class='btn-small'
|
|
|
|
label="admin.customize.theme.install"
|
|
|
|
disabled=installDisabled
|
|
|
|
icon="upload"
|
|
|
|
action=(action "installThemeFromList" theme.value)}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|