From 785861830fb99a5d012e340032993b059fc23974 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Tue, 29 Nov 2022 09:38:25 +0100 Subject: [PATCH] fix(profile): members number display --- .../structure-edition-summary.component.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/profile/structure-edition-summary/structure-edition-summary.component.html b/src/app/profile/structure-edition-summary/structure-edition-summary.component.html index 84bd07da6..7e9c6f5db 100644 --- a/src/app/profile/structure-edition-summary/structure-edition-summary.component.html +++ b/src/app/profile/structure-edition-summary/structure-edition-summary.component.html @@ -679,7 +679,11 @@ ></app-button> </div> <div class="content" *ngIf="members"> - <p>{{ members.length }} membre(s)</p> + <div [ngPlural]="members.length"> + <ng-template ngPluralCase="1">Aucun autre membre</ng-template> + <ng-template ngPluralCase="2">1 membre</ng-template> + <ng-template ngPluralCase="other">{{ members.length - 1 }} membre(s)</ng-template> + </div> </div> </div> </div> -- GitLab