Add a status page to /v1/ so that people don't get confused by the message that docker emits

This commit is contained in:
Joseph Schorr 2013-10-17 17:45:08 -04:00
parent 4f0dced8e7
commit e382fa1e58
4 changed files with 39 additions and 2 deletions

View file

@ -50,7 +50,7 @@ function getMarkedDown(string) {
}
function HeaderCtrl($scope, $location, UserService, Restangular) {
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
$scope.user = currentUser;
}, true);
@ -755,4 +755,14 @@ function UserAdminCtrl($scope, $timeout, Restangular, PlanService, UserService,
});
});
};
}
function V1Ctrl($scope, UserService) {
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
$scope.user = currentUser;
}, true);
$scope.browseRepos = function() {
document.location = '/repository/';
};
}