{# Renders a block of rating info which displays the current average rating and enables user rating input using the same element package - The package for which the rating is displayed {% snippet "rating/snippets/rating_single.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 %}