{# Colonne droite de la fiche livre (admin), détail et édition : couverture, notes, avis #} {% set work = work is defined ? work : entity.instance %} {% set cover = work.localCoverPath ? '/covers/' ~ work.localCoverPath : work.defaultCoverUrl %} {% set ratings = work.ratings|sort((a, b) => b.createdAt <=> a.createdAt) %}
Notes et avis
{% for rating in ratings %} {% set user = rating.user %} {% set review = rating.review %}