rename main code directory
This commit is contained in:
8
bookwyrm/templates/snippets/stars.html
Normal file
8
bookwyrm/templates/snippets/stars.html
Normal file
@ -0,0 +1,8 @@
|
||||
<div class="stars">
|
||||
<span class="hidden-text">{{ rating|floatformat }} star{{ rating|floatformat | pluralize }}</span>
|
||||
{% for i in '12345'|make_list %}
|
||||
<span class="icon icon-star-{% if rating >= forloop.counter %}full{% elif rating|floatformat:0 >= forloop.counter|floatformat:0 %}half{% else %}empty{% endif %}">
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user