{# adapted from https://codepen.io/redlabor/pen/wyiAH which is a fork of https://codepen.io/jamesbarnett/pen/vlpkh #} {% if not rate_error %}
{% set rating = entry.rating * 2 if entry.rating is not none else 0 %} {% for i in range(10, 0, -1) %} {% endfor %}
{% else %}
{{ rate_error }}
{% endif %}