server/frontend/static/views/rank.html
2016-02-01 16:07:41 +01:00

19 lines
694 B
HTML

<p><input type="search" class="form-control" placeholder="Rechercher" ng-model="query"></p>
<table class="table table-hover table-bordered table-striped">
<thead>
<tr>
<th ng-repeat="field in fields" ng-click="order(field)">
{{ field }}
<span class="glyphicon" ng-show="rankOrder === field" ng-class="{'glyphicon-up': !reverse, 'glyphicon-down': reverse}"></span>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="team in rank | filter: query | orderBy:rankOrder:reverse" ng-click="show(team.id)" ng-show="team.rank || query">
<td ng-repeat="field in fields" ng-class="{info: my.team_id == team.id}">
{{ team[field] }}
</td>
</tr>
</tbody>
</table>