{% extends "star_ratings/widget_base.html" %} {% load i18n %} {% block rating_detail %} {% if not user.is_authenticated and not anonymous_ratings and not read_only %}

{{ rating.average|floatformat:"-2" }} ({{ rating.count }} Vote{{ rating.count|pluralize }}) {% trans 'Please log in to vote.' %}

{% else %} {% block rating_user %}

{{ rating.average|floatformat:"-2" }} ({{ rating.count }} Vote{{ rating.count|pluralize }}) - {% trans 'You voted: ' %} {% if user_rating %} {{ user_rating.score }} {% else %} {% trans 'Not voted' %} {% endif %}

{% endblock rating_user %}

{% endif %} {% endblock rating_detail %}