Merge pull request #2283 from hughrun/halfstars

fix visibility of stars when editing a review
This commit is contained in:
Mouse Reeve 2022-08-29 13:39:47 -07:00 committed by GitHub
commit 775ee6f590
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 == forloop.counter %}checked{% endif %}
{% if default_rating >= forloop.counter0 %}checked{% endif %}
/>
<input
id="{{ type|slugify }}_book{{ book.id }}_star_{{ forloop.counter }}"
@ -45,7 +45,7 @@
type="radio"
name="rating"
value="{{ forloop.counter }}"
{% if default_rating == forloop.counter %}checked{% endif %}
{% if default_rating >= forloop.counter %}checked{% endif %}
/>
<label