{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {'form': form, 'comments': comments, 'route_pin': route_pin|default(null), 'route_delete': route_delete|default(null), 'delete_by_user': delete_by_user|default(false)} %} {% import "macros/widgets.html.twig" as widgets %} {% block box_title %}{{ 'label.comment'|trans }}{% endblock %} {% block box_attributes %}id="comments_box"{% endblock %} {% block box_body_class %}box-body-scrollable{% endblock %} {% block box_body %} {% set replacer = {} %} {% for pref in app.user.preferences %} {% set replacer = replacer|merge({('{{user.' ~ pref.name ~ '}}'): pref.value}) %} {% endfor %} {% if comments|length == 0 %} {{ 'error.no_comments_found'|trans }} {% else %} {% for comment in comments %}