{% from 'utils.html.twig' import ico %}
{% if outline is defined and outline == true %}
{% set icoKey = 'star-o' %}
{% set wrapClass = 'stars-o' %}
{% else %}
{% set icoKey = 'star' %}
{% set wrapClass = 'stars-full' %}
{% endif %}
{% set halfs = (halfs is defined and halfs == false)? false : true %}
{% set stars = paintStars(score, halfs) %}
<span class="avaliacao-stars {{ wrapClass }}">
{% for i in 0..4 %}
{% set key = (stars[i] == 'half')? icoKey ~ '-halfs' : icoKey %}
<i class="{{ stars[i] }}">{{ ico(key) }}</i>
{% endfor %}
</span>