frontend: rank: don't be too precise
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 16 Dec 2018 23:50:57 +0000 (00:50 +0100)
committerPierre-Olivier Mercier <nemunaire@nemunai.re>
Sun, 16 Dec 2018 23:50:57 +0000 (00:50 +0100)
frontend/static/views/rank.html

index 6e5a1e8..e5218d9 100644 (file)
       </tr>
     </thead>
     <tbody>
-      <tr ng-repeat="team in rank | filter: query | orderBy:rankOrder:reverse" ng-click="show(team.id)" ng-if="team.rank">
-       <td ng-repeat="field in fields" ng-class="{'bg-info': my.team_id == team.id}">
-         {{ team[field] }}
-       </td>
+      <tr ng-repeat="team in rank | filter: query | orderBy:rankOrder:reverse" ng-click="show(team.id)" ng-if="team.rank" ng-class="{'bg-info': my.team_id == team.id}">
+       <td>{{ team.rank }}</td>
+       <td>{{ team.name }}</td>
+       <td>{{ team.score | number:0 }}</td>
       </tr>
     </tbody>
   </table>