<div class="review_rating">
{% set maxStars=5 %}
{% set count=1 %}
{% for i in 1..review.rating %}
<i class="star bi bi-star-fill"></i>
{% set count=i %}
{% endfor %}
{% if review.rating|substr(2,3) == maxStars %}
<i class="star bi bi-star-half"></i>
{% set count=count+1 %}
{% endif %}
{% if count < maxStars %}
{% for rest in (count+1)..maxStars %}
<i class="star bi bi-star"></i>
{% endfor %}
{% endif %}
</div>