diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Timeline/activity_person_context.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Timeline/activity_person_context.html.twig index ce9a68ea4..c968c889b 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Timeline/activity_person_context.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Timeline/activity_person_context.html.twig @@ -1,7 +1,7 @@ {% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
-

{% if 'person' != context %}{{ activity.person|chill_entity_render_box({'addLink': true}) }} / {% endif %}{{ activity.date|format_date('long') }} / {{ 'Activity'|trans }}

+

{{ activity.date|format_date('long') }} / {{ 'Activity'|trans }}{% if 'person' != context %} / {{ activity.person|chill_entity_render_box({'addLink': true}) }}{% endif %}

{{ '%user% has done an %activity_type%'|trans( { diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Timeline/closing_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Timeline/closing_period.html.twig index 76224636a..6c92a481a 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Timeline/closing_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Timeline/closing_period.html.twig @@ -3,6 +3,11 @@ {{ period.closingDate|format_date('long') }} / {{ 'An accompanying period ends'|trans }} + {% if 'person' != context %} + {% for p in period.persons %} + / {{ p|chill_entity_render_box({'addLink': true}) }} + {% endfor %} + {% endif %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Timeline/opening_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Timeline/opening_period.html.twig index 6987aee2b..e3df6b720 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Timeline/opening_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Timeline/opening_period.html.twig @@ -3,6 +3,11 @@ {{ period.openingDate|format_date('long') }} / {{ 'An accompanying period starts'|trans }} + {% if 'person' != context %} + {% for p in period.persons %} + / {{ p|chill_entity_render_box({'addLink': true}) }} + {% endfor %} + {% endif %}