[TEMPLATES] Add dynamic blocks to right panel

This commit is contained in:
Diogo Peralta Cordeiro 2021-04-30 01:53:19 +01:00 committed by Hugo Sales
parent 4bd081ad27
commit 2d8d8ffb48
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -7,7 +7,15 @@
<div> </div>
</div>
<div>
{% block right %}
{% endblock right %}
{% set current_path = app.request.get('_route') %}
{% if right_panel_vars is defined %}
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
{{ block | raw }}
{% endfor %}
{% else %}
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
{{ block | raw }}
{% endfor %}
{% endif %}
</div>
</div>