{# Renders a block of rating info which displays the current average rating and enables user rating input using the same element, hence named flat Also uses only one icon type and the number of stars is highlighted with star-filled and star-empty classes package - The package for which the rating is displayed {% snippet "rating/snippets/rating_single_flat.html", package=pkg %} #} {% resource "rating_css/rating.css" %} {% if enable_input %} {% resource "rating_js/rating.js" %} {% endif %} {% set action = 'submit_package_rating' %} {% if package.type == 'showcase' %} {% set action = 'submit_showcase_rating' %} {% endif %} {% set stars = package.rating %}