Merge branch 'issue406_truncate_comment' into 'master'

Truncate comment

See merge request Chill-Projet/chill-bundles!304
This commit is contained in:
Julien Fastré 2022-01-26 13:06:04 +00:00
commit 12c68a4c9f
3 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,9 @@ and this project adheres to
## Unreleased
<!-- write down unreleased development here -->
* [parcours] comments truncated if too long + link added (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/406)
* [person]: possibility to add person resources (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/382)
* [person ressources]: module added
## Test releases

View File

@ -77,7 +77,10 @@
<h4 class="item-key visually-hidden">{{ 'Pinned comment'|trans }}</h4>
<blockquote class="chill-user-quote">
<i class="fa fa-flag float-end text-chill-gray" title="{{ 'pinned'|trans }}"></i>
{{ accompanyingCourse.pinnedComment.content|chill_markdown_to_html }}
{{ accompanyingCourse.pinnedComment.content|u.truncate(250, '…', false)|chill_markdown_to_html }}
{% if accompanyingCourse.pinnedComment.content|length > 250 %}
<a href="{{ chill_path_add_return_path('chill_person_accompanying_period_comment_list', {'accompanying_period_id': accompanyingCourse.id}) }}">{{ 'Read more'|trans }}</a>
{% endif %}
<div class="metadata">
{{ 'Last updated by'| trans }}
<span class="user">

View File

@ -447,6 +447,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