From cd6807cdb15e94c1780cfb64afc984f1651d9315 Mon Sep 17 00:00:00 2001 From: Mikko Nieminen Date: Thu, 30 Mar 2017 15:00:14 +0300 Subject: [PATCH] Update stars_inactive to match the structure of other templates --- .../templates/rating/snippets/stars_inactive.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ckanext/rating/templates/rating/snippets/stars_inactive.html b/ckanext/rating/templates/rating/snippets/stars_inactive.html index db82591..c61f7f3 100644 --- a/ckanext/rating/templates/rating/snippets/stars_inactive.html +++ b/ckanext/rating/templates/rating/snippets/stars_inactive.html @@ -19,22 +19,18 @@ stars - The number of stars to be displayed. {%- for index in range(stars|int) -%} - + {%- endfor -%} {%- if half_star == 1 -%} - + {%- endif -%} {%- for index in range(stars|int + half_star, 5) -%} - + {%- endfor -%} {% endblock %} -{% block main_star_rating_br %} -
-{% endblock %} - {% block star_rating_description %} {{ ratings_count }} {{ _('rating') if ratings_count == 1 else _('ratings') }} {% endblock %}