Update stars_inactive to match the structure of other templates
This commit is contained in:
parent
80559a6272
commit
cd6807cdb1
|
@ -19,22 +19,18 @@ stars - The number of stars to be displayed.
|
|||
<span class="star-rating{% if stars == 0 %} no-stars{% endif %}">
|
||||
<span class="star-rating-stars">
|
||||
{%- for index in range(stars|int) -%}
|
||||
<span class="icon icon-star"></span>
|
||||
<span class="icon icon-star rating-star"></span>
|
||||
{%- endfor -%}
|
||||
{%- if half_star == 1 -%}
|
||||
<span class="icon icon-star-half-empty"></span>
|
||||
<span class="icon icon-star-half-empty rating-star"></span>
|
||||
{%- endif -%}
|
||||
{%- for index in range(stars|int + half_star, 5) -%}
|
||||
<span class="icon icon-star-empty"></span>
|
||||
<span class="icon icon-star-empty rating-star"></span>
|
||||
{%- endfor -%}
|
||||
</span>
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block main_star_rating_br %}
|
||||
<br>
|
||||
{% endblock %}
|
||||
|
||||
{% block star_rating_description %}
|
||||
<span class="rating-description">{{ ratings_count }} {{ _('rating') if ratings_count == 1 else _('ratings') }}</span>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue