feat: replace some partials with twig components

This commit is contained in:
Björn Fromme committed 2024-03-01 11:13:47 +01:00
1 parent a668dcb326
commit f722afe7ff
23 files changed
+205 -96

No files matched your search

@@ -0,0 +1,5 @@
<div class="inline-flex items-center"{% if averageRating %}{{ stimulus_controller('tooltip', { content: averageRating|format_rating|raw, placement: 'top' }) }}{% endif %}>
{% for grade in range(1, 5) %}
{{ icon('star', html_classes('w-4 h-4', { 'text-gray-200': averageRating < grade * 100, 'text-primary': averageRating >= grade * 100 })) }}
{% endfor %}
</div>