2017-12-01 13:49:15 +01:00
< page-header model = "ctrl.navModel" > < / page-header >
2016-02-14 17:37:05 +01:00
2017-12-01 13:49:15 +01:00
< div class = "page-container page-body" >
< div class = "page-action-bar" >
2017-12-14 12:46:00 +01:00
< label class = "gf-form gf-form--grow gf-form--has-input-icon" >
< input type = "text" class = "gf-form-input max-width-30" placeholder = "Find user by name/login/email" tabindex = "1" give-focus = "true" ng-model = "ctrl.query" ng-model-options = "{ debounce: 500 }" spellcheck = 'false' ng-change = "ctrl.getUsers()" / >
< i class = "gf-form-input-icon fa fa-search" > < / i >
< / label >
< div class = "page-action-bar__spacer" > < / div >
2019-02-05 12:05:02 +01:00
< a class = "btn btn-primary" href = "admin/users/create" >
2019-02-12 17:08:40 +01:00
New user
2017-02-08 14:20:07 +01:00
< / a >
< / div >
2017-06-02 14:00:42 +02:00
2017-02-08 14:20:07 +01:00
< div class = "admin-list-table" >
2017-12-14 14:30:13 +01:00
< table class = "filter-table form-inline filter-table--hover" >
2017-02-08 14:20:07 +01:00
< thead >
< tr >
2017-08-18 14:49:04 +02:00
< th > < / th >
2017-02-08 14:20:07 +01:00
< th > Login< / th >
< th > Email< / th >
2017-08-09 10:36:41 +02:00
< th >
2017-12-14 14:30:13 +01:00
Seen
< tip > Time since user was seen using Grafana< / tip >
< / th >
2017-02-08 14:20:07 +01:00
< th > < / th >
2017-12-14 14:30:13 +01:00
< th style = "width: 1%" > < / th >
2017-02-08 14:20:07 +01:00
< / tr >
< / thead >
< tbody >
< tr ng-repeat = "user in ctrl.users" >
2017-12-14 14:30:13 +01:00
< td class = "width-4 text-center link-td" >
< a href = "admin/users/edit/{{user.id}}" >
< img class = "filter-table__avatar" ng-src = "{{user.avatarUrl}}" > < / img >
< / a >
< / td >
< td class = "link-td" >
< a href = "admin/users/edit/{{user.id}}" >
{{user.login}}
< / a >
< / td >
< td class = "link-td" >
< a href = "admin/users/edit/{{user.id}}" >
{{user.email}}
2017-02-08 14:20:07 +01:00
< / a >
2017-12-14 14:30:13 +01:00
< / td >
< td class = "link-td" >
< a href = "admin/users/edit/{{user.id}}" >
{{user.lastSeenAtAge}}
< / a >
< / td >
< td class = "link-td" >
< a href = "admin/users/edit/{{user.id}}" >
< i class = "fa fa-shield" ng-show = "user.isAdmin" bs-tooltip = "'Grafana Admin'" > < / i >
< / a >
< / td >
< td class = "text-right" >
2017-02-08 14:20:07 +01:00
< a ng-click = "ctrl.deleteUser(user)" class = "btn btn-danger btn-small" >
< i class = "fa fa-remove" > < / i >
< / a >
< / td >
< / tr >
< / tbody >
2016-02-14 17:37:05 +01:00
2017-02-08 14:20:07 +01:00
< / table >
< / div >
< div class = "admin-list-paging" ng-if = "ctrl.showPaging" >
< ol >
< li ng-repeat = "page in ctrl.pages" >
2017-12-14 14:30:13 +01:00
< button class = "btn btn-small" ng-class = "{'btn-secondary': page.current, 'btn-inverse': !page.current}" ng-click = "ctrl.navigateToPage(page)" > {{page.page}}< / button >
2017-02-08 14:20:07 +01:00
< / li >
< / ol >
< / div >
2015-01-15 15:53:55 +01:00
< / div >