mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-717 - fix plugin workzone - shouldn't be rendered if empty
This commit is contained in:

committed by
Benoît Burnichon

parent
f64e3afa63
commit
8e769ad657
@@ -195,11 +195,13 @@
|
|||||||
{% include 'prod/tab_thesaurus.html.twig' with {has_access_to_module: app.getAclForUser(app.getAuthenticatedUser()).has_access_to_module('thesaurus')} %}
|
{% include 'prod/tab_thesaurus.html.twig' with {has_access_to_module: app.getAclForUser(app.getAuthenticatedUser()).has_access_to_module('thesaurus')} %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% if plugins.workzone is not empty %}
|
||||||
<div id="plugins" class="PNB {{ plugins.workzone|length > 1 ? 'multiple-plugin' : 'single-plugin' }}" style="top:52px;">
|
<div id="plugins" class="PNB {{ plugins.workzone|length > 1 ? 'multiple-plugin' : 'single-plugin' }}" style="top:52px;">
|
||||||
{% for pluginId, plugin in plugins.workzone %}
|
{% for pluginId, plugin in plugins.workzone %}
|
||||||
{% include plugin.getWorkzoneTemplate() with {'app': app, 'plugin_id': pluginId} only %}
|
{% include plugin.getWorkzoneTemplate() with {'app': app, 'plugin_id': pluginId} only %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="basket_menu" class="context-menu context-menu-theme-vista" style="display:none;">
|
<div id="basket_menu" class="context-menu context-menu-theme-vista" style="display:none;">
|
||||||
|
Reference in New Issue
Block a user