{# Renders a module for display in the site sidebar containing the rating for the provided dataset and some info about how the stars work. stars - The number of stars assigned to the current dataset. reason - A reason, if any, why the dataset has no rating. Example: {% snippet "qa/snippets/stars_module.html", stars=3 %} #} {% set captions = [ _('Available under an open license.'), _('Available as structured data (eg. Excel instead of a scanned table).'), _('Uses non-proprietary formats (e.g., CSV instead of Excel).'), _('Uses URIs to identify things, so that people can link to it.'), _('Linked to other data to provide context.') ] %}

{{ _('Resource Quality') }}

{% for caption in captions %} {% if stars == loop.index %} {{ _('Rating') }}:{{ h.qa_stars_rating(stars, reason) }} {% endif %} {% endfor %} {% if stars == 0 %} {{ _('Rating') }}:{{ h.qa_stars_rating(stars, reason) }} {% endif %}

{{ _('About these ratings…') }}

{{ h.qa_stars_info(stars) }}