{% set base = addon.get_url_path()|urlparams('reviews') %} {% if collection_uuid %} {% set base = base|urlparams(collection_uuid=collection_uuid) %} {% endif %} {% with num=addon.total_reviews %} {% if num %} {{ addon.average_rating|float|stars }} ({{ num|numberfmt }}) {% else %} {{ _('Not yet rated') }} {% endif %} {% endwith %}