From 5526790d42ab2c5087c74df575a2a41fc8560610 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 13 Dec 2021 14:49:16 +0100 Subject: [PATCH] diaplay initialComment on course resume page --- .../translations/messages.fr.yml | 1 + .../views/AccompanyingCourse/index.html.twig | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml index 78363d080..4ae23f1e3 100644 --- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml @@ -56,6 +56,7 @@ centers: centres Centers: Centres comment: commentaire Comment: Commentaire +Pinned comment: Commentaire épinglé Any comment: Aucun commentaire # comment embeddable diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index cdd0363b4..215aa90c1 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -78,6 +78,25 @@ {% endif %} + {% if accompanyingCourse.initialComment is not empty %} +
+

{{ 'Pinned comment'|trans }}

+
+ {{ accompanyingCourse.initialComment.content }} + +
+
+ {% endif %} + {% if accompanyingCourse.scopes is not empty %}

{{ 'Scopes'|trans }}