{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %} {# {{ dump() }}
        event :
    | #{{ event.id }} | {{ event.date|localizeddate('short', 'short') }} | {{ event.name }} | center {{ event.center.id }} | circle {{ event.circle.id }} | type {{ event.type.id }} | {{ event.moderator }} |
        participations :
    {% for participation in event.participations %}
    | #{{ participation.id }} | {{ participation.person }} | {{ participation.role.name|localize_translatable_string }} | {{ participation.status.name|localize_translatable_string }} | lastupdate {{ participation.lastupdate|localizeddate('short', 'short') }} |
    {% endfor %}
    
#} {% if "now"|date('U') > event.date|date('U') %} {% set boolDate = 'past' %} {% else %} {% set boolDate = 'futur' %} {% endif %}

{{ event.date|localizeddate('long', 'short') }} / {% if boolDate|trans == 'futur' %} Prochain événement {% else %} {{ 'Event'|trans }} passé {% endif %}

{% if is_granted(constant('Chill\\ActivityBundle\\Security\\Authorization\\ActivityVoter::SEE_DETAILS'), event) %}
{{ 'Remark'|trans }}
{% if event.remark is empty %}{{ 'No remarks'|trans }}{% else %}
{{ event.remark|nl2br }}
{% endif %}
{{ 'Reasons'|trans }}
{%- if event.reasons is empty -%}
{{ 'No reason associated'|trans }}
{%- else -%}
{% for r in event.reasons %}{{ m.reason(r) }} {% endfor %}
{%- endif -%}
{% endif %}