From cfea5dd2c695d75c33871f0a031002d08d4cea3d Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 6 Feb 2020 15:26:51 +0300 Subject: [PATCH] feat(admin-plugin): allow to deactivate plugins - admin and site #211 --- .../templates/extends/plugins/index.html | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/site/plugins/admin/templates/extends/plugins/index.html b/site/plugins/admin/templates/extends/plugins/index.html index fcdf23b2..de06c679 100644 --- a/site/plugins/admin/templates/extends/plugins/index.html +++ b/site/plugins/admin/templates/extends/plugins/index.html @@ -50,21 +50,16 @@ {{ icon('fas fa-cog') }} {{ tr('admin_settings') }} - {% if key == 'admin' or key == 'site' or key == '' %} - + + + {% if plugin.enabled %} {{ icon('fas fa-toggle-on') }} - {{ tr('admin_deactivate') }} - {% else %} - - {% if plugin.enabled %} - {{ icon('fas fa-toggle-on') }} - {{ tr('admin_deactivate') }} - {% else %} - {{ icon('fas fa-toggle-off') }} - {{ tr('admin_activate') }} - {% endif %} - - {% endif %} + {{ tr('admin_deactivate') }} + {% else %} + {{ icon('fas fa-toggle-off') }} + {{ tr('admin_activate') }} + {% endif %} +