{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}
{% for number in range((entry.average_rating)|float|round|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}