sidebar review stars should default to zero
PR #2283 surfaced an existing formerly-hidden issue with star rating defaults in the sidebar of book pages. This commit ensures the default rating is zero, not half a star. Fixes #2291
This commit is contained in:
parent
c71d133d2c
commit
230d30abb8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
type="radio"
|
type="radio"
|
||||||
name="rating"
|
name="rating"
|
||||||
value="{{ forloop.counter0 }}.5"
|
value="{{ forloop.counter0 }}.5"
|
||||||
{% if default_rating >= forloop.counter0 %}checked{% endif %}
|
{% if default_rating > 0 and default_rating >= forloop.counter0 %}checked{% endif %}
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
id="{{ type|slugify }}_book{{ book.id }}_star_{{ forloop.counter }}"
|
id="{{ type|slugify }}_book{{ book.id }}_star_{{ forloop.counter }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue