Avoid too much useless precision when displaying scores
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 9 Dec 2018 19:01:53 +0000 (20:01 +0100)
committerPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 9 Dec 2018 23:31:29 +0000 (00:31 +0100)
dashboard/static/index.html
frontend/static/index.html

index a25baf8..2cef2e6 100644 (file)
                <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>
index 30520ce..6fb3e99 100644 (file)
        </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>