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