{% extends "/layout/profile.html" %} {% from "/macros/rating.html" import rating %} {% from "/macros/profile/profile-reviews.html" import writeReviewModal, editReview, confirmationModal, commentForm %} {% from "/macros/profile-image.html" import productImageMedium, userImageMedium %} {% set localI18n = application.reviews.i18n %} {% set reviews = application.reviews %} {% set currentUserReview = application.reviews.currentUserReview %} {% set user = config.user %} {% block data %} {% endblock %} {% block contentSection %}
{% if reviews.items.length %}

{{ localI18n.labels.averageReview }}

{{ rating(reviews.rating) }}
{{ localI18n.labels.ratioOutOfNumReviewTotal }}
{% if user.isLoggedIn %}

{{ localI18n.labels.myReview }}

{{ rating(currentUserReview.rating) }}
{% endif %}
{% else %}

{{ localI18n.labels.noReviews }}

{% endif %}
{% if user.isLoggedIn %} {% else %} {% endif %}
{% if reviews.featured.length %} {% endif %} {% if reviews.items.length %} {% endif %}
{{ writeReviewModal(localI18n, user) }} {{ confirmationModal("delete-entry-confirmation", localI18n.labels.confirm, localI18n.messages.confirm.deleteEntry, localI18n) }} {{ confirmationModal("delete-comment-confirmation", localI18n.labels.confirm, localI18n.messages.confirm.deleteComment, localI18n) }} {% endblock %}