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() {

View file

@ -2,6 +2,11 @@
resource="repositoryResource"
error-message="'Repository not found'">
<div class="page-content">
<!-- New Public Repo Page experiment -->
<div ng-if="newRepoExperiment">
</div>
<!-- Old Repo Page -->
<div ng-if="!newRepoExperiment">
<div class="cor-title">
<span class="cor-title-link">
<a class="back-link" href="/repository">
@ -101,3 +106,4 @@
</div>
</div>
</div>
</div>