/
themeOverview.twig
27 lines (22 loc) · 1.16 KB
/
themeOverview.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% import '@CorePluginsAdmin/macros.twig' as plugins %}
{% if isSuperUser %}
{% if plugin.canBeUpdated %}
<a href="{{ linkTo({'action':'updatePlugin', 'pluginName': plugin.name, 'nonce': updateNonce}) }}"
class="update"
>{{ 'CoreUpdater_UpdateTitle'|translate }}</a>
{% elseif plugin.isInstalled %}
<span class="install">{{ 'General_Installed'|translate }}</span>
{% else %}
<a href="{{ linkTo({'action': 'installPlugin', 'pluginName': plugin.name, 'nonce': installNonce}) }}"
class="install">Install</a>
{% endif %}
{% endif %}
<h3 class="header" title="Click for more details">
<a href="javascript:false;" class="more">{{ plugin.name }}</a>
</h3>
<p class="description">{% if plugin.featured %}{{ plugins.featuredIcon('right') }}{% endif %}{{ plugin.description }}</p>
<a href="javascript:false;" class="more"><img title="Click for more details"
class="preview" src="{{ plugin.screenshots|first }}?w=250&h=250"/></a>
{% if plugin.canBeUpdated %}
<p class="updateAvailableNotice">You can update this theme from version {{ plugin.currentVersion }} to {{ plugin.latestVersion }}</p>
{% endif %}