mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 09:16:05 +01:00
hide uninstall button for active theme
This commit is contained in:
@@ -88,10 +88,12 @@
|
|||||||
{% set data = admin.data('themes/' ~ admin.route) %}
|
{% set data = admin.data('themes/' ~ admin.route) %}
|
||||||
{% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %}
|
{% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %}
|
||||||
|
|
||||||
|
{% if (config.get('system.pages.theme') != admin.route) %}
|
||||||
<div class="button-bar danger">
|
<div class="button-bar danger">
|
||||||
<span class="danger-zone"></span>
|
<span class="danger-zone"></span>
|
||||||
<a class="button" href="{{ base_url_relative }}/themes/{{ theme.slug }}/task:uninstall"><i class="fa fa-fw fa-warning"></i>Remove Theme</a>
|
<a class="button" href="{{ base_url_relative }}/themes/{{ theme.slug }}/task:uninstall"><i class="fa fa-fw fa-warning"></i>Remove Theme</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="button-bar success">
|
<div class="button-bar success">
|
||||||
<a class="button" href="{{ base_url_relative }}/themes/{{ theme.slug }}/task:install"><i class="fa fa-fw fa-plus"></i>Install Theme</a>
|
<a class="button" href="{{ base_url_relative }}/themes/{{ theme.slug }}/task:install"><i class="fa fa-fw fa-plus"></i>Install Theme</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user