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