From 6cc6405c8ef1e818863c07e729c55c5ed8b005d7 Mon Sep 17 00:00:00 2001 From: Florian BLOUET Date: Fri, 28 Aug 2015 15:45:12 +0200 Subject: [PATCH] add new css classes in plugin container to flag single vs multiple plugin isntalled --- templates/web/prod/index.html.twig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index a61dc42aa1..c337f428c5 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -183,8 +183,12 @@ {% block tabs_panel %}
{% include 'prod/tab_headers.html.twig' %} -
- {% set workzone_plugins = app['plugin.workzone'] %} + {% set workzone_plugins = app['plugin.workzone'] %} + {% set workzone_plugins_class = 'single-plugin' %} + {% if workzone_plugins.keys()|length > 1 %} + {% set workzone_plugins_class = 'multiple-plugin' %} + {% endif %} +
{% for plugin in workzone_plugins.keys() %} {% include workzone_plugins[plugin].getWorkzoneTemplate() with {'app': app, 'plugin_id': plugin} only %} {% endfor %}