mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
add new css classes in plugin container to flag single vs multiple plugin isntalled
This commit is contained in:
committed by
Benoît Burnichon
parent
f6ad7c1829
commit
6cc6405c8e
@@ -183,8 +183,12 @@
|
|||||||
{% block tabs_panel %}
|
{% block tabs_panel %}
|
||||||
<div id="retractableButton"></div>
|
<div id="retractableButton"></div>
|
||||||
{% include 'prod/tab_headers.html.twig' %}
|
{% include 'prod/tab_headers.html.twig' %}
|
||||||
<div id="plugins" class="PNB" style="top:52px;">
|
|
||||||
{% 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 %}
|
||||||
|
<div id="plugins" class="PNB {{ workzone_plugins_class }}" style="top:52px;">
|
||||||
{% for plugin in workzone_plugins.keys() %}
|
{% for plugin in workzone_plugins.keys() %}
|
||||||
{% include workzone_plugins[plugin].getWorkzoneTemplate() with {'app': app, 'plugin_id': plugin} only %}
|
{% include workzone_plugins[plugin].getWorkzoneTemplate() with {'app': app, 'plugin_id': plugin} only %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user