Merge branch '390-fix-search-results' into 'master'

Fix participant condition in list_with_period.html.twig

Closes #390

See merge request Chill-Projet/chill-bundles!832
This commit is contained in:
Julien Fastré 2025-07-02 10:59:17 +00:00
commit 65dde1e6a0
4 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,6 @@
kind: Fixed
body: Display the list of participant in the results, even if there is only one participant and that the search result display the requestor
time: 2025-06-04T16:55:50.107852336+02:00
custom:
Issue: "390"
SchemaChange: No schema change

View File

@ -96,11 +96,11 @@
</div>
{% endif %}
{% if acp.currentParticipations|length > 1 %}
{% if acp.currentParticipations|length > 1 or (acp.currentParticipations|first).person is not same as person %}
<div class="wl-row">
<div class="wl-col title">
<h3 class="participants">
{{ 'Participants'|trans }}
{{ 'accompanying_period.Participants_without_count'|trans({count: acp.currentParticipations|length}) }}
</h3>
</div>
<div class="wl-col list">

View File

@ -13,6 +13,14 @@ Requestor: >-
neutral {Demandeur·euse}
}
accompanying_period:
Participants_without_count: >-
{count, plural,
=0 {Participant}
=1 {Participant}
other {Participants}
}
person:
from_the: depuis le
And himself: >-

View File

@ -208,7 +208,7 @@ Pediod closing form is not valid: Le formulaire n'est pas valide
Accompanying user: Accompagnant
No accompanying user: Aucun accompagnant
No data given: Pas d'information
Participants: Usagers impliquées
Participants: Usagers impliqués
Create an accompanying course: Créer un parcours
Accompanying courses of users: Parcours des utilisateurs
This accompanying course is still a draft: Ce parcours est encore à l'état brouillon.