diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index dac937001..ce95b8401 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -77,7 +77,10 @@

{{ 'Pinned comment'|trans }}

- {{ accompanyingCourse.pinnedComment.content|chill_markdown_to_html }} + {{ accompanyingCourse.pinnedComment.content|u.truncate(250, '…', false)|chill_markdown_to_html }} + {% if accompanyingCourse.pinnedComment.content|length > 250 %} + {{ 'Read more'|trans }} + {% endif %}
{{ 'Last updated by'| trans }} diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index a1083dc88..061bf155c 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -430,6 +430,7 @@ accompanying_course_comment: Comment removed: Commentaire supprimé Remove comment: Supprimer le commentaire Are you sure you want to remove comment ?: Étes-vous sûr de vouloir supprimer ce commentaire ? +Read more: En savoir plus # Household Household: Ménage