forked from mirrors/bookwyrm
Fixes text for absent star rating
This commit is contained in:
parent
5e3426236a
commit
c4bf2653f7
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<div class="stars">
|
||||
<span class="is-sr-only">{{ rating|floatformat }} star{{ rating|floatformat | pluralize }}</span>
|
||||
<span class="is-sr-only">{% if rating %}{{ rating|floatformat }} star{{ rating|floatformat | pluralize }}{% else %}No rating{% endif %}</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>
|
||||
|
|
Loading…
Reference in a new issue