{% load i18n comments comment_utils %}

{% trans 'Product Reviews' %}

{% get_public_comment_list for product.product product.id as comments %} {% if not comments %} {% if user.is_authenticated %} {% trans 'Be the first to review it!' %} {% endif %} {% else %} {% for comment in comments %}

{% if comment.user.get_full_name %}{{ comment.user.get_full_name|escape }}{% else %}{{ comment.user.username|escape }}{% endif %} — {{ comment.submit_date|date:"F j, Y" }} — {% trans 'Rating' %} {{ comment.rating1 }}/5

{{ comment.comment|escape|urlizetrunc:40|linebreaks }}
{% endfor %} {% endif %} {% if user.is_authenticated %}

{% trans 'Review this product' %}

{% comment_form for product.product product.id with ratings_optional scale:1-5|Rating %} {% else %} {% trans 'Please login to review this product.' %} {% endif %}