{# Renders a complete block of rating snippets package - The package for which the rating is displayed {% snippet "rating/snippets/rating.html", package=pkg %} #Updated by Francesco Mangiacrapa #} {% resource "rating_css/rating.css" %} {% if h.show_rating_in_type(package.type) %}
{% block general_rating %}

{{ _('Rating') }}

{% snippet "rating/snippets/stars_inactive.html", package=package %}
{% endblock %} {% block user_rating %} {% if h.check_access('check_access_user') %}

{{ _('Your rating') }}

{%- snippet "rating/snippets/stars.html", package=package -%} {% block user_rating_br %}
{% endblock %} {%- snippet "rating/snippets/rating_description.html", rating=h.get_user_rating(package.id) -%}
{% else %}
To access the rating you must log in
{% endif %} {% endblock %}
{% endif %}