{% block component_review_rating %} {% set full = points|round(0, 'floor') %} {% set left = ((points - full) * 4)|round %} {% set left = left / 4 %} {% if left > 0 %} {% set half = 1 %} {% endif %} {% set blank = 5 - full - half %} {% if altText is not defined %} {% set altText = 'detail.reviewAvgRatingAltText'|trans({ '%points%': points|round(1, 'floor'), '%maxPoints%': 5 }) %} {% endif %} {% block component_review_rating_output %}
{% endblock %} {% endblock %}