mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 07:27:28 -02:30
Show last login along with the badges on the user view screen.
This commit is contained in:
@@ -75,6 +75,18 @@
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.Form-title--last_login {
|
||||
border-radius: 5px;
|
||||
color: @default-interface-txt;
|
||||
font-size: 10px;
|
||||
font-weight: 100;
|
||||
height:15px;
|
||||
margin-left: 10px;
|
||||
margin-top: 2.25px;
|
||||
padding: 0 10px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.Form-exitHolder {
|
||||
justify-content: flex-end;
|
||||
display:flex;
|
||||
|
||||
@@ -1418,6 +1418,8 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
"ng-show='ldap_user'>LDAP</span>";
|
||||
html+= "<span class=\"Form-title--is_external_account\" "+
|
||||
"ng-show='external_account'>{{external_account}}</span>";
|
||||
html+= "<span class=\"Form-title--last_login\" "+
|
||||
"ng-show='last_login'>" + i18n._("Last logged in: ") + "{{ last_login | longDate }}</span>";
|
||||
}
|
||||
if(this.form.name === "smartinventory"){
|
||||
html+= "<span class=\"Form-title--is_smartinventory\" "+
|
||||
|
||||
@@ -35,6 +35,7 @@ export default ['$scope', '$rootScope', 'UserForm', 'GenerateForm', 'Rest',
|
||||
$scope.ldap_dn = null;
|
||||
$scope.socialAuthUser = false;
|
||||
$scope.external_account = null;
|
||||
$scope.last_login = null;
|
||||
|
||||
Rest.setUrl(GetBasePath('users'));
|
||||
Rest.options()
|
||||
|
||||
@@ -52,6 +52,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'Rest',
|
||||
$scope.not_ldap_user = !$scope.ldap_user;
|
||||
master.ldap_user = $scope.ldap_user;
|
||||
$scope.socialAuthUser = (user_obj.auth.length > 0) ? true : false;
|
||||
$scope.last_login = user_obj.last_login;
|
||||
$scope.external_account = user_obj.external_account;
|
||||
|
||||
$scope.user_type = $scope.user_type_options[0];
|
||||
|
||||
Reference in New Issue
Block a user