mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
fix visibility of stars when editing a review
Previously the star rating appeared to be five stars when editing a review, regardless of what value was actually stored. Now it will show the actual rating, including half stars. Fixes #2213
This commit is contained in:
parent
c902301d82
commit
252fe7fd6a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue