Change it so the front page does appear for signed in users, with a welcome message and a browse button

This commit is contained in:
Joseph Schorr 2013-10-01 22:28:39 -04:00
parent 31914da4ca
commit f12ed9859c
2 changed files with 11 additions and 7 deletions

View file

@ -104,14 +104,15 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) {
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
$scope.user = currentUser;
if (currentUser && !currentUser.anonymous) {
document.location = '/#/repository';
}
}, true);
$scope.awaitingConfirmation = false;
$scope.registering = false;
$scope.browseRepos = function() {
document.location = '/#/repository';
};
$scope.register = function() {
$('.form-signup').popover('hide');
$scope.registering = true;