-
+ {% for calendar in calendarItems %}
+
+
+
+
- {% if calendar.startDate and calendar.endDate %}
- {% if calendar.endDate.diff(calendar.startDate).days >= 1 %}
-
{{ "From the day"|trans }} {{ calendar.startDate|format_datetime('medium', 'short') }}
-
{{ "to the day"|trans }} {{ calendar.endDate|format_datetime('medium', 'short') }}
- {% else %}
-
{{ calendar.startDate|format_date('full') }}
-
{{ calendar.startDate|format_datetime('none', 'short', locale='fr') }} - {{ calendar.endDate|format_datetime('none', 'short', locale='fr') }}
+ {% if calendar.startDate and calendar.endDate %}
+ {% if calendar.endDate.diff(calendar.startDate).days >= 1 %}
+
{{ "From the day"|trans }} {{ calendar.startDate|format_datetime('medium', 'short') }}
+
{{ "to the day"|trans }} {{ calendar.endDate|format_datetime('medium', 'short') }}
+ {% else %}
+
{{ calendar.startDate|format_date('full') }}
+
{{ calendar.startDate|format_datetime('none', 'short', locale='fr') }} - {{ calendar.endDate|format_datetime('none', 'short', locale='fr') }}
+
+
+
+
+ {{ calendar.endDate.diff(calendar.startDate)|date("%H:%M")}}
+
+
+ {% endif %}
-
-
-
- {{ calendar.endDate.diff(calendar.startDate)|date("%H:%M")}}
-
-
{% endif %}
+
+
+
+
+ {% if calendar.user %}
+ -
+ {{ 'by'|trans }}{{ calendar.user.usernameCanonical }}
+
+ {% endif %}
+
+ {% if calendar.mainUser is not empty %}
+ -
+ {{ 'main user concerned'|trans }}: {{ calendar.mainUser.usernameCanonical }}
+
+ {% endif %}
+
+
+
+ -
+
+
+ {# TOOD
+ {% if is_granted('CHILL_ACTIVITY_UPDATE', calendar) %}
+ #}
+ -
+
+
+ {# TOOD
+ {% endif %}
+ {% if is_granted('CHILL_ACTIVITY_DELETE', calendar) %}
+ #}
+ -
+
+
+ {#
+ {% endif %}
+ #}
+
+
+
+
+ {%
+ if calendar.comment.comment is not empty
+ or calendar.users|length > 0
+ or calendar.thirdParties|length > 0
+ or calendar.users|length > 0
+ %}
+
+
+
+ {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context, 'with_display': 'row', 'entity': calendar } %}
+
+
+ {% if calendar.comment.comment is not empty %}
+
{% endif %}
-
- {% if context == 'user' and calendar.accompanyingPeriod is not empty %}
-
-
- {% endif %}
-
-
-
-
- {% if calendar.user %}
- -
- {{ 'by'|trans }}{{ calendar.user.usernameCanonical }}
-
- {% endif %}
-
- {% if calendar.mainUser is not empty %}
- -
- {{ 'main user concerned'|trans }}: {{ calendar.mainUser.usernameCanonical }}
-
- {% endif %}
-
-
- -
- {%- if calendar.comment.isEmpty -%}
- {{ 'No comments'|trans }}
- {%- else -%}
- {{ calendar.comment|chill_entity_render_box }}
- {%- endif -%}
-
-
-
-
-
- -
-
-
- {# TOOD
- {% if is_granted('CHILL_ACTIVITY_UPDATE', calendar) %}
- #}
- -
-
-
- {# TOOD
- {% endif %}
- {% if is_granted('CHILL_ACTIVITY_DELETE', calendar) %}
- #}
- -
-
-
- {#
- {% endif %}
- #}
-
-
-
-
- {%
- if calendar.comment.comment is not empty
- or calendar.users|length > 0
- or calendar.thirdParties|length > 0
- or calendar.users|length > 0
- %}
-
-
-
- {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context, 'with_display': 'row', 'entity': calendar } %}
-
-
- {% if calendar.comment.comment is not empty %}
-
{% endif %}
+
- {% endif %}
+ {% endfor %}
+
+ {% endif %}
+
+ {% if context != 'user' %}
+ {# TODO set this condition in configuration #}
+
+ {% endif %}
+
+
-