From 2a09594b4a03377ad04cc172dbf9c5a09c402128 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 22 Jul 2025 13:25:48 +0200 Subject: [PATCH] UI improvement: limit display of particapations in event list page --- .changes/unreleased/UX-20250722-132637.yaml | 6 ++++++ .../Resources/views/Event/page_list.html.twig | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changes/unreleased/UX-20250722-132637.yaml diff --git a/.changes/unreleased/UX-20250722-132637.yaml b/.changes/unreleased/UX-20250722-132637.yaml new file mode 100644 index 000000000..9f0766794 --- /dev/null +++ b/.changes/unreleased/UX-20250722-132637.yaml @@ -0,0 +1,6 @@ +kind: UX +body: Limit display of participations in event list +time: 2025-07-22T13:26:37.500656935+02:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig index bb1ffa24e..4d887d3c5 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/page_list.html.twig @@ -54,14 +54,14 @@ block js %} {% if e.participations|length > 0 %}
{{ "Participations" | trans }} : - {% for part in e.participations|slice(0, 20) %} {% include + {% for part in e.participations|slice(0, 5) %} {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { targetEntity: { name: 'person', id: part.person.id }, action: 'show', displayBadge: true, buttonText: part.person|chill_entity_render_string, isDead: - part.person.deathdate is not null } %} {% endfor %} {% if - e.participations|length > 20 %} - {{ 'events.and_other_count_participants'|trans({'count': e.participations|length - 20}) }} + part.person.deathdate is not null } %} {% endfor %} + {% if e.participations|length > 5 %} + {{ 'events.and_other_count_participants'|trans({'count': e.participations|length - 5}) }} {% endif %}
{% endif %}