{% assign hasComment = false %} {% if site.data.comments != null %} {% assign comments_hashes = site.data.comments | sort %} {% for comment_hash in comments_hashes reversed %} {% assign comment = comment_hash[1] %} {% if comment.lesson == lesson.id and comment.level == lesson.level %}
{% capture commentContent %} {% include pages/lesson/comment/content.html %} {% endcapture %} {% include _includes/components/cards/big_card.html content=commentContent %}
{% assign hasComment = true %} {% endif %} {% endfor %} {% endif %} {% if hasComment == false %} Il n'y a pas de commentaire sur ce cours pour le moment. {% endif %}