mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-31 04:57:46 +00:00
UI improvement: limit display of particapations in event list page
This commit is contained in:
parent
7c798e1f63
commit
2a09594b4a
6
.changes/unreleased/UX-20250722-132637.yaml
Normal file
6
.changes/unreleased/UX-20250722-132637.yaml
Normal file
@ -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
|
@ -54,14 +54,14 @@ block js %}
|
|||||||
{% if e.participations|length > 0 %}
|
{% if e.participations|length > 0 %}
|
||||||
<div class="item-row separator">
|
<div class="item-row separator">
|
||||||
<strong>{{ "Participations" | trans }} : </strong>
|
<strong>{{ "Participations" | trans }} : </strong>
|
||||||
{% 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 {
|
'@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||||
targetEntity: { name: 'person', id: part.person.id }, action:
|
targetEntity: { name: 'person', id: part.person.id }, action:
|
||||||
'show', displayBadge: true, buttonText:
|
'show', displayBadge: true, buttonText:
|
||||||
part.person|chill_entity_render_string, isDead:
|
part.person|chill_entity_render_string, isDead:
|
||||||
part.person.deathdate is not null } %} {% endfor %} {% if
|
part.person.deathdate is not null } %} {% endfor %}
|
||||||
e.participations|length > 20 %}
|
{% if e.participations|length > 5 %}
|
||||||
{{ 'events.and_other_count_participants'|trans({'count': e.participations|length - 20}) }}
|
{{ 'events.and_other_count_participants'|trans({'count': e.participations|length - 5}) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user