Merge pull request #2580 from Giebisch/fix-rating-half-stars

Fix Half Stars for Rating books
This commit is contained in:
Mouse Reeve 2023-01-09 20:24:50 -08:00 committed by GitHub
commit cdf51ccbc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@
type="radio"
name="rating"
value="{{ forloop.counter0 }}.5"
{% if default_rating > 0 and default_rating >= forloop.counter0 %}checked{% endif %}
{% if default_rating > 0 and default_rating > forloop.counter0 %}checked{% endif %}
/>
<input
id="{{ type|slugify }}_book{{ book.id }}_star_{{ forloop.counter }}"