* bump version * include calendar week in week chooser * table names in SQL * show save flash message * prevent migration warning * drop default value to prevent error when server version is not set * csrf token for duplicate actions * updated translations
16 lines
666 B
Twig
16 lines
666 B
Twig
{% macro projects(view, query) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'projects', view, {'query': query}) %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endmacro %}
|
|
|
|
{% macro project(project, view, isTable) %}
|
|
{% import "macros/widgets.html.twig" as widgets %}
|
|
{% set event = actions(app.user, 'project', view, {'project': project, 'token': csrf_token('project.duplicate')}) %}
|
|
{% if view == 'index' or view == 'custom' or isTable is not null %}
|
|
{{ widgets.table_actions(event.actions) }}
|
|
{% else %}
|
|
{{ widgets.page_actions(event.actions) }}
|
|
{% endif %}
|
|
{% endmacro %}
|