{% macro tags(view, query) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'tags', view, {'query': query}) %} {{ widgets.page_actions(event.actions) }} {% endmacro %} {% macro tag(tag, view) %} {% import "macros/widgets.html.twig" as widgets %} {% set event = actions(app.user, 'tag', view, {'tag': tag}) %} {% if view == 'index' or view == 'custom' %} {{ widgets.table_actions(event.actions) }} {% else %} {{ widgets.page_actions(event.actions) }} {% endif %} {% endmacro %}