Add skeleton experiment for new repo page
This commit is contained in:
parent
bd9c258ba2
commit
24327f4964
2 changed files with 93 additions and 84 deletions
|
@ -7,7 +7,7 @@
|
||||||
'newLayout': true,
|
'newLayout': true,
|
||||||
'title': '{{ namespace }}/{{ name }}',
|
'title': '{{ namespace }}/{{ name }}',
|
||||||
'description': 'Repository {{ namespace }}/{{ name }}'
|
'description': 'Repository {{ namespace }}/{{ name }}'
|
||||||
})
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
function RepoViewCtrl($scope, $routeParams, $location, $timeout, ApiService, UserService, AngularPollChannel, ImageLoaderService) {
|
function RepoViewCtrl($scope, $routeParams, $location, $timeout, ApiService, UserService, AngularPollChannel, ImageLoaderService) {
|
||||||
|
@ -61,6 +61,9 @@
|
||||||
$scope.repository = repo;
|
$scope.repository = repo;
|
||||||
$scope.viewScope.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
|
// Load the remainder of the data async, so we don't block the initial view from
|
||||||
// showing.
|
// showing.
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
resource="repositoryResource"
|
resource="repositoryResource"
|
||||||
error-message="'Repository not found'">
|
error-message="'Repository not found'">
|
||||||
<div class="page-content">
|
<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">
|
<div class="cor-title">
|
||||||
<span class="cor-title-link">
|
<span class="cor-title-link">
|
||||||
<a class="back-link" href="/repository">
|
<a class="back-link" href="/repository">
|
||||||
|
@ -101,3 +106,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
Reference in a new issue