{% macro render_tree(activities, component, withBtn) %} {% for activity in activities %}
  • {% include "activity/_item.html.twig" with {activity: activity, component: component, withBtn: withBtn} %} {% if activity.children is not empty %} {% endif %}
  • {% endfor %} {% endmacro %}