diaplay initialComment on course resume page

This commit is contained in:
Mathieu Jaumotte 2021-12-13 14:49:16 +01:00
parent 133e4858dc
commit 5526790d42
2 changed files with 20 additions and 0 deletions

View File

@ -56,6 +56,7 @@ centers: centres
Centers: Centres
comment: commentaire
Comment: Commentaire
Pinned comment: Commentaire épinglé
Any comment: Aucun commentaire
# comment embeddable

View File

@ -78,6 +78,25 @@
</div>
{% endif %}
{% if accompanyingCourse.initialComment is not empty %}
<div class="col col-sm-6 col-lg-4 comment mb-4">
<h4 class="item-key">{{ 'Pinned comment'|trans }}</h4>
<blockquote class="chill-user-quote">
{{ accompanyingCourse.initialComment.content }}
<div class="metadata">
{{ 'Last updated by'| trans }}
<span class="user">
{{ accompanyingCourse.initialComment.updatedBy|chill_entity_render_box }}
</span>
{{ 'on'|trans ~ ' ' }}
<span class="date">
{{ accompanyingCourse.initialComment.updatedAt|format_datetime("medium", "short") }}
</span>
</div>
</blockquote>
</div>
{% endif %}
{% if accompanyingCourse.scopes is not empty %}
<div class="col col-sm-6 col-lg-4 scopes mb-4">
<h4 class="item-key">{{ 'Scopes'|trans }}</h4>