From 04e9e309728e9b277c22c2d84aae338008da411c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 19 May 2021 11:44:09 +0200 Subject: [PATCH] quick fix for banner --- .../Resources/views/AccompanyingCourse/banner.html.twig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig index 2091cf54a..c8d566e84 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/banner.html.twig @@ -22,8 +22,10 @@

- ouvert le {{ accompanyingCourse.openingDate|format_date('short') }}
- par {{ accompanyingCourse.user.usernameCanonical }} + {{ 'Started on %date%'|trans({'%date%': accompanyingCourse.openingDate|format_date('short') } ) }}
+ {% if accompanyingCourse.user is not null %} + par {{ accompanyingCourse.user.usernameCanonical }} + {% endif %}