{% set iRatingValue = oView.getRatingValue() %} {% if iRatingValue %}{% apply spaceless %}
1 5 {{ iRatingValue }} {{ oView.getRatingCount() }}
{% endapply %}{% endif %} {% if not oxcmp_user %} {% set _star_title = "MESSAGE_LOGIN_TO_RATE"|translate %} {% elseif not oView.canRate() %} {% set _star_title = "MESSAGE_ALREADY_RATED"|translate %} {% else %} {% set _star_title = "MESSAGE_RATE_THIS_ARTICLE"|translate %} {% endif %} {% for starRatings in 0..5 %} {% if iRatingValue == 0 %} {% else %} {% if iRatingValue > 1 %} {% set iRatingValue = iRatingValue-1 %} {% else %} {% if iRatingValue < 0.5 %} {% if iRatingValue < 0.3 %} {% else %} {% endif %} {% set iRatingValue = 0 %} {% elseif iRatingValue > 0.8 %} {% set iRatingValue = 0 %} {% else %} {% set iRatingValue = 0 %} {% endif %} {% endif %} {% endif %} {% endfor %} ({{ oView.getRatingCount() }} {{ translate({ ident: "RATING_CUSTOMERRATINGS" }) }})