Hello User link now uses /api/v1/me to link to /users/N

This commit is contained in:
chouseknecht 2013-05-23 01:25:02 -04:00
parent bdbfcd4b85
commit d59e2a416f
2 changed files with 6 additions and 2 deletions

View File

@ -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);
}
}]);

View File

@ -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 -->