Add skeleton experiment for new repo page

This commit is contained in:
Ian Minoso 2016-09-20 15:52:06 -04:00
parent bd9c258ba2
commit 24327f4964
2 changed files with 93 additions and 84 deletions

View file

@ -7,7 +7,7 @@
'newLayout': true,
'title': '{{ namespace }}/{{ name }}',
'description': 'Repository {{ namespace }}/{{ name }}'
})
});
}]);
function RepoViewCtrl($scope, $routeParams, $location, $timeout, ApiService, UserService, AngularPollChannel, ImageLoaderService) {
@ -61,6 +61,9 @@
$scope.repository = repo;
$scope.viewScope.repository = repo;
// Flag for new repo page experiment
$scope.newRepoExperiment = ($scope.repository.is_public && $scope.user.username != $scope.repository.namespace && $scope.publicRepoExperiment) ? true : false;
// Load the remainder of the data async, so we don't block the initial view from
// showing.
$timeout(function() {