user-sessions.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <ol class="breadcrumb">
  3. <li><a href="#/realms/{{realm.realm}}/users">{{:: 'users' | translate}}</a></li>
  4. <li>{{user.username}}</li>
  5. </ol>
  6. <kc-tabs-user></kc-tabs-user>
  7. <table class="table table-striped table-bordered">
  8. <thead>
  9. <tr data-ng-show="user.access.manage">
  10. <th class="kc-table-actions" colspan="6">
  11. <div class="pull-right" data-ng-show="user.access.manage">
  12. <a id="logoutAllSessions" class="btn btn-default" ng-click="logoutAll()">{{:: 'logout-all-sessions' | translate}}</a>
  13. </div>
  14. </th>
  15. </tr>
  16. <tr>
  17. <th>{{:: 'ip-address' | translate}}</th>
  18. <th>{{:: 'started' | translate}}</th>
  19. <th>{{:: 'last-access' | translate}}</th>
  20. <th>{{:: 'clients' | translate}}</th>
  21. <th data-ng-show="user.access.manage">{{:: 'action' | translate}}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr data-ng-repeat="session in sessions">
  26. <td>{{session.ipAddress}}</td>
  27. <td>{{session.start | date:'medium'}}</td>
  28. <td>{{session.lastAccess | date:'medium'}}</td>
  29. <td>
  30. <div data-ng-repeat="(id, clientId) in session.clients">
  31. <a href="#/realms/{{realm.realm}}/clients/{{id}}">{{clientId}}</a>
  32. </div>
  33. </ul>
  34. </td>
  35. <td class="kc-action-cell" data-ng-show="user.access.manage" ng-click="logoutSession(session.id)">{{:: 'logout' | translate}}</td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <kc-menu></kc-menu>