feat: link ratings widget with feedback list filtered by teamer
addresses #869at5mdu
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user