feat: link ratings widget with feedback list filtered by teamer

addresses #869at5mdu
This commit is contained in:
Björn Fromme
2026-08-24 13:50:07 +02:00
parent 43968e4e7b
commit dfa3e63926
12 changed files with 83 additions and 11 deletions
+15 -5
View File
@@ -1,5 +1,15 @@
<div class="inline-flex items-center">
{% for grade in range(1, 5) %}
{{ icon('star', html_classes('w-4 h-4', { 'text-gray-200': (rating/100)|round < grade, 'text-primary': (rating/100)|round >= grade })) }}
{% endfor %}
</div>
{% set stars %}
<div class="inline-flex items-center">
{% for grade in range(1, 5) %}
{{ icon('star', html_classes('w-4 h-4', { 'text-gray-200': (rating/100)|round < grade, 'text-primary': (rating/100)|round >= grade })) }}
{% endfor %}
</div>
{% endset %}
{% if teamer is not null and rating and is_granted('ROLE_ADMINISTRATIVE') %}
<a href="{{ path('app_administrative_feedback_index_teamer', { 'uuid': teamer.uuid }) }}"
target="_blank"
rel="noopener"
title="Feedback anzeigen">{{ stars }}</a>
{% else %}
{{ stars }}
{% endif %}