{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Reviews for %eventname%'|trans({'%eventname%': event.name}) %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{'events': 'Events'|trans, (path('event', { slug : event.name })): (event.name), "current" : (pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %}
{{ "%resultsCount% reviews(s) found"|trans({'%resultsCount%': reviews.getTotalItemCount}) }}
{% set runtimeConfig = {"scale": {"dim": [150, 150] }} %}

{{ event.name }}

{{ event.getRatingAvg }} {{"out of 5 stars"|trans|lower}}
{{ "5 stars"|trans }}
{{ event.getRatingsPercentageForRating(5) }}%
{{ "4 stars"|trans }}
{{ event.getRatingsPercentageForRating(4) }}%
{{ "3 stars"|trans }}
{{ event.getRatingsPercentageForRating(3) }}%
{{ "2 stars"|trans }}
{{ event.getRatingsPercentageForRating(2) }}%
{{ "1 star"|trans }}
{{ event.getRatingsPercentageForRating(1) }}%
{% if reviews.getTotalItemCount > 0 %}
{% for review in reviews %} {% include "Global/user-review.html.twig" with {review: review, showuser: 1} %} {% endfor %}
{% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No review found'|trans), icon: "fas fa-exclamation-circle" } %} {% endif %} {{ knp_pagination_render(reviews, null, {}, {'align': 'center'}) }}
{% endblock %}