{# Renders a set of stars for the current dataset or if it has none a string explaining the reason. stars - The number of stars assigned to the dataset. reason - A reason why the dataset doesn't have a rating. {% snippet "qa/snippets/stars.html", stars=4 %} #} {%- if stars == 0 -%} {%- else -%} {%- for index in range(stars) -%} {%- endfor -%} {%- for index in range(5-stars) -%} {%- endfor -%} {%- endif -%}