From 24327f4964b182d7b78374e573b565da8f3f0354 Mon Sep 17 00:00:00 2001 From: Ian Minoso Date: Tue, 20 Sep 2016 15:52:06 -0400 Subject: [PATCH] Add skeleton experiment for new repo page --- static/js/pages/repo-view.js | 5 +- static/partials/repo-view.html | 172 +++++++++++++++++---------------- 2 files changed, 93 insertions(+), 84 deletions(-) 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'">
-
- - - Repositories - - - - - {{ namespace }} / {{ name }} - - + +
- -
-
- - + +
+
+ + + Repositories + - - - + + + {{ namespace }} / {{ name }} + +
- - - +
+
+ + + - - - + + + - - - - + + + - - - -
+ + + -
- -
-
-
+ + + + - -
-
-
+ + + +
- -
-
-
+
+ +
+
+
- -
-
-
+ +
+
+
- -
-
-
+ +
+
+
- -
-
-
-
+ +
+
+
+ + +
+
+
+ + +
+
+
+
+