From d990e4d895bd020940dc7e9211d0573f67e18dbb Mon Sep 17 00:00:00 2001 From: Gert Date: Thu, 16 Apr 2015 18:02:06 +0200 Subject: [PATCH] hide uninstall button for active theme --- themes/grav/templates/partials/themes-details.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/grav/templates/partials/themes-details.html.twig b/themes/grav/templates/partials/themes-details.html.twig index 006acde4..67c31b81 100644 --- a/themes/grav/templates/partials/themes-details.html.twig +++ b/themes/grav/templates/partials/themes-details.html.twig @@ -88,10 +88,12 @@ {% set data = admin.data('themes/' ~ admin.route) %} {% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %} + {% if (config.get('system.pages.theme') != admin.route) %}
Remove Theme
+ {% endif %} {% else %}
Install Theme