Avoid too much useless precision when displaying scores

This commit is contained in:
nemunaire 2018-12-09 20:01:53 +01:00
parent 3a372b85c5
commit 6df8ee8eb7
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@
<tr ng-repeat="r in rank | orderBy: 'rank' | limitTo: s.params.limit: s.params.begin">
<th class="text-right">{{ r.rank }}<sup ng-if="r.rank == 1">er</sup><sup ng-if="r.rank > 1">e</sup></th>
<td>{{ r.name }}</td>
<td>{{ r.score }}</td>
<td>{{ r.score | number:0 }}</td>
</tr>
</tbody>
</table>

View File

@ -104,7 +104,7 @@
</ul>
</div>
<span class="navbar-text text-light" ng-show="(my.team_id)" ng-cloak>
{{ my.score }} 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 }} points <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>