mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Hello User link now uses /api/v1/me to link to /users/N
This commit is contained in:
parent
bdbfcd4b85
commit
d59e2a416f
@ -253,5 +253,9 @@ angular.module('ansible', [
|
||||
else {
|
||||
base.replace(/\_/g,' ');
|
||||
$('.nav-tabs a[href="#' + base + '"]').tab('show');
|
||||
}
|
||||
}
|
||||
|
||||
$rootScope.viewCurrentUser = function() {
|
||||
$location.path('/users/' + $rootScope.current_user.id);
|
||||
}
|
||||
}]);
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
<a class="brand" href="#/"><img class="logo" src="{{ STATIC_URL }}img/ansibleworks-logo.png" /></a>
|
||||
<ul class="nav pull-right">
|
||||
<li ng-show="current_user.username != null && current_user.username != undefined">
|
||||
<a href="" ng-bind="'Hello! ' + current_user.username"></a></li>
|
||||
<a href="" ng-click="viewCurrentUser()" ng-bind="'Hello! ' + current_user.username"></a></li>
|
||||
<li ng-show="userLoggedIn == true"><a href="#/logout">Logout</a></li>
|
||||
</ul>
|
||||
</div><!-- container -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user