frontend: pluralize points on index

This commit is contained in:
nemunaire 2020-01-28 18:50:26 +01:00
parent 05a795ad49
commit 6f17fc0760
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@
</ul>
</div>
<span class="navbar-text text-light" ng-show="(my.team_id)" ng-cloak>
{{ my.score | number }} points <span ng-show="teams[my.team_id].rank">&ndash; {{ teams[my.team_id].rank }}<sup>e</sup> sur {{ teams_count }}</span>
{{ my.score | number }} <ng-pluralize count="my.score" when="{'0': 'point', '-1': 'point', 'one': 'point', 'other': 'points'}"></ng-pluralize> <span ng-show="teams[my.team_id].rank">&ndash; {{ teams[my.team_id].rank }}<sup>e</sup> sur {{ teams_count }}</span>
<h4 style="display: inline">
<a tabindex="0" href="/edit" class="badge" role="button" style="background-color: {{ teams[my.team_id].color }}; color: {{ teams[my.team_id].color }};">
<span class="teamname">{{ my.name }}</span>