Adds ratings
This commit is contained in:
parent
f7cb3d9444
commit
a27effd05d
15 changed files with 170 additions and 19 deletions
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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue