From 782e098e31075ae9215d77609e9c1cbddc7cdfc5 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 12 Jan 2022 17:37:49 +0100 Subject: [PATCH] Course resume page: hide a masonry bloc if no content (fix) --- .../Resources/views/AccompanyingCourse/index.html.twig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index db4042b1b..392355753 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -55,6 +55,7 @@ {% endif %} + {% if accompanyingCourse.locationStatus != 'none' %}
{% if accompanyingCourse.locationStatus == 'person' %} @@ -63,12 +64,10 @@ {% elseif accompanyingCourse.locationStatus == 'address' %}

{{ 'This course has a temporarily location'|trans }}

{% endif %} - - {% if accompanyingCourse.locationStatus != 'none' %} - {{ accompanyingCourse.location|chill_entity_render_box }} - {% endif %} + {{ accompanyingCourse.location|chill_entity_render_box }}
+ {% endif %} {% if accompanyingCourse.pinnedComment is not empty %}