Adds ratings

This commit is contained in:
Mouse Reeve
2020-04-03 12:43:49 -07:00
parent f7cb3d9444
commit a27effd05d
15 changed files with 170 additions and 19 deletions

View File

@ -0,0 +1,9 @@
<span class="hidden-text">Leave a rating</span>
<div class="stars">
{% for i in '12345'|make_list %}
<span class="icon icon-star-{% if rating < forloop.counter %}empty{% else %}full{% endif %}">
<span class="hidden-text">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
</span>
{% endfor %}
</div>