mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +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')} %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% if plugins.workzone is not empty %}
|
||||
<div id="plugins" class="PNB {{ plugins.workzone|length > 1 ? 'multiple-plugin' : 'single-plugin' }}" style="top:52px;">
|
||||
{% for pluginId, plugin in plugins.workzone %}
|
||||
{% include plugin.getWorkzoneTemplate() with {'app': app, 'plugin_id': pluginId} only %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div id="basket_menu" class="context-menu context-menu-theme-vista" style="display:none;">
|
||||
|
Reference in New Issue
Block a user