comments truncated and link added to comment page

This commit is contained in:
Julie Lenaerts 2022-01-26 12:54:53 +01:00
parent 7513187a6d
commit 7943c22ae7
2 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,10 @@
<h4 class="item-key visually-hidden">{{ 'Pinned comment'|trans }}</h4> <h4 class="item-key visually-hidden">{{ 'Pinned comment'|trans }}</h4>
<blockquote class="chill-user-quote"> <blockquote class="chill-user-quote">
<i class="fa fa-flag float-end text-chill-gray" title="{{ 'pinned'|trans }}"></i> <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"> <div class="metadata">
{{ 'Last updated by'| trans }} {{ 'Last updated by'| trans }}
<span class="user"> <span class="user">

View File

@ -430,6 +430,7 @@ accompanying_course_comment:
Comment removed: Commentaire supprimé Comment removed: Commentaire supprimé
Remove comment: Supprimer le commentaire Remove comment: Supprimer le commentaire
Are you sure you want to remove comment ?: Étes-vous sûr de vouloir supprimer ce 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
Household: Ménage Household: Ménage