Adds ratings
This commit is contained in:
9
fedireads/templates/snippets/stars.html
Normal file
9
fedireads/templates/snippets/stars.html
Normal 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>
|
||||
|
Reference in New Issue
Block a user