{% macro activities(view) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'activities', view) %} {{ widgets.page_actions(event.actions) }} {% endmacro %} {% macro activity(activity, view, isTable) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'activity', view, {'activity': activity}) %} {% if view == 'index' or view == 'custom' or isTable is not null %} {{ widgets.table_actions(event.actions) }} {% else %} {{ widgets.page_actions(event.actions) }} {% endif %} {% endmacro %}