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