Matteo Scandolo | bf14f88 | 2016-06-02 10:01:34 -0700 | [diff] [blame] | 1 | <!-- Users page partial html --> |
| 2 | <div class="container"> |
| 3 | <div id="user" class="row"> |
| 4 | <div class="col-xs-12"> |
| 5 | <table class="table"> |
| 6 | <thead> |
| 7 | <tr> |
| 8 | <th></th> |
| 9 | <th class="form-inline"> |
| 10 | Name <input ng-model="q.name" type="text" class="form-control"> |
| 11 | </th> |
| 12 | <th>Last Login</th> |
| 13 | <th ng-if="isFamily"> |
| 14 | Video Optimization: |
| 15 | </th> |
| 16 | <th ng-if="isFamily"></th> |
| 17 | </tr> |
| 18 | </thead> |
| 19 | <tr ng-repeat="user in users | filter:q" class="animate-repeat" ng-show="users.length > 0"> |
| 20 | <td class="avatar"> |
| 21 | <img class="img-rounded" ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}"> |
| 22 | </td> |
| 23 | <td>{{user.name}}</td> |
| 24 | <td>{{shared.userActivity[user.id]}}</td> |
| 25 | <td ng-if="isFamily"> |
| 26 | <select class="form-control" ng-model="user.level" ng-options="l for l in levels" ng-change="updateLevel(user)"> |
| 27 | </select> |
| 28 | </td> |
| 29 | <td ng-if="isFamily" style="width: 46px"> |
| 30 | <user-updated-tick user="user">Saved</user-updated-tick> |
| 31 | </td> |
| 32 | </tr> |
| 33 | <tr ng-show="!users"> |
| 34 | <td colspan="4"> |
| 35 | <div class="loader"></div> |
| 36 | </td> |
| 37 | </tr> |
| 38 | </table> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |