From 0b3bcf2bd07ef6411b98c8eb24993516e083f50f Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 4 Mar 2016 19:16:11 +0100 Subject: [PATCH] Avoid nested dependencies, will show further dependencies later in the process --- .../partials/plugins-details.html.twig | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/themes/grav/templates/partials/plugins-details.html.twig b/themes/grav/templates/partials/plugins-details.html.twig index c21de112..52764a47 100644 --- a/themes/grav/templates/partials/plugins-details.html.twig +++ b/themes/grav/templates/partials/plugins-details.html.twig @@ -60,13 +60,9 @@ {% macro outputCheckboxesForDependencies(dependencies) %} @@ -75,12 +71,17 @@

Delete plugin

-

- The following dependencies are only required by this plugin, and can be deleted too. Check the ones you want to remove, and click the Continue button below -

- - {{ _self.outputCheckboxesForDependencies(dependenciesThatCanBeRemoved) }} + {% if dependenciesThatCanBeRemoved|length > 0 %} +

+ The following dependencies are only required by this plugin, and can be deleted too. Check the ones you want to remove, and click the Continue button below +

+ {{ _self.outputCheckboxesForDependencies(dependenciesThatCanBeRemoved) }} + {% else %} +

+ Are you sure you want to delete this plugin? +

+ {% endif %}