diff --git a/static/js/pages/repo-view.js b/static/js/pages/repo-view.js index f6056a019..542036a01 100644 --- a/static/js/pages/repo-view.js +++ b/static/js/pages/repo-view.js @@ -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() { diff --git a/static/partials/repo-view.html b/static/partials/repo-view.html index e16ba85ed..cc9bf3b5a 100644 --- a/static/partials/repo-view.html +++ b/static/partials/repo-view.html @@ -2,102 +2,108 @@ resource="repositoryResource" error-message="'Repository not found'">