diff --git a/static/js/pages/landing.js b/static/js/pages/landing.js index c92447533..53c0e733e 100644 --- a/static/js/pages/landing.js +++ b/static/js/pages/landing.js @@ -1,7 +1,6 @@ (function() { /** * Landing page. - * DEPRECATED: Remove the code for viewing when logged in. */ angular.module('quayPages').config(['pages', function(pages) { pages.create('landing', 'landing.html', LandingCtrl, { @@ -10,21 +9,14 @@ }]); function LandingCtrl($scope, $location, UserService, ApiService, Features, Config) { - $scope.namespace = null; $scope.currentScreenshot = 'repo-view'; $scope.userRegistered = false; - $scope.$watch('namespace', function(namespace) { - loadMyRepos(namespace); - }); - UserService.updateUserIn($scope, function(user) { if (!user.anonymous) { $location.path('/repository'); return; } - - loadMyRepos($scope.namespace); }); $scope.handleUserRegistered = function() { @@ -35,36 +27,6 @@ $scope.currentScreenshot = screenshot; }; - $scope.canCreateRepo = function(namespace) { - if (!$scope.user) { return false; } - - if (namespace == $scope.user.username) { - return true; - } - - if ($scope.user.organizations) { - for (var i = 0; i < $scope.user.organizations.length; ++i) { - var org = $scope.user.organizations[i]; - if (org.name == namespace) { - return org.can_create_repo; - } - } - } - - return false; - }; - - var loadMyRepos = function(namespace) { - if (!$scope.user || $scope.user.anonymous || !namespace) { - return; - } - - var options = {'limit': 4, 'public': false, 'sort': true, 'namespace': namespace }; - $scope.my_repositories = ApiService.listReposAsResource().withOptions(options).get(function(resp) { - return resp.repositories; - }); - }; - $scope.chromify = function() { browserchrome.update(); diff --git a/static/partials/landing-login.html b/static/partials/landing-login.html index 024762706..638b809d2 100644 --- a/static/partials/landing-login.html +++ b/static/partials/landing-login.html @@ -1,57 +1,18 @@
-
-
+
+
-
- - - -

Enterprise Registry

-
- -
- - -
- - - - -
-
- You don't have access to any repositories in this organization yet. - You don't have any repositories yet! - -
-
-
-
+ + + +

Enterprise Registry

-
- -
-
- -
Welcome {{ user.username }}!
- Browse all repositories - Create a new repository -
+
diff --git a/static/partials/landing-normal.html b/static/partials/landing-normal.html index a6ee0966f..2cafd459d 100644 --- a/static/partials/landing-normal.html +++ b/static/partials/landing-normal.html @@ -1,6 +1,6 @@
-
-
+
+
Thank you for registering! We have sent you an activation email. @@ -10,61 +10,22 @@
-
-

Secure hosting for private Docker* repositories

-

Use the Docker images your team needs with the safety of private repositories

- Get 20 free private repos for 6 months -
- -
- - -
- - - - -
-
- You don't have access to any repositories in this organization yet. - You don't have any repositories yet! - -
-
-
-
+

Secure hosting for private Docker* repositories

+

Use the Docker images your team needs with the safety of private repositories

+ Get 20 free private repos for 6 months
-
- -
-
- -
Welcome {{ user.username }}!
- Browse all repositories - Create a new repository -
+
-
-
+
+
@@ -98,7 +59,7 @@
-
+

Trusted by companies who use Docker

@@ -267,12 +228,8 @@
-
- -
-
-
- Mobile Analytics -
+
+ Mobile Analytics
+