Add a simplified landing page for the case where billing is disabled

This commit is contained in:
Joseph Schorr 2014-04-06 14:48:58 -04:00
parent badf002e92
commit 6e2b8d96b8
6 changed files with 271 additions and 151 deletions

View file

@ -262,7 +262,7 @@ function RepoListCtrl($scope, $sanitize, Restangular, UserService, ApiService) {
loadPublicRepos();
}
function LandingCtrl($scope, UserService, ApiService) {
function LandingCtrl($scope, UserService, ApiService, Features) {
$scope.namespace = null;
$scope.$watch('namespace', function(namespace) {
@ -303,7 +303,17 @@ function LandingCtrl($scope, UserService, ApiService) {
});
};
browserchrome.update();
$scope.chromify = function() {
browserchrome.update();
};
$scope.getEnterpriseLogo = function() {
if (!Features.ENTERPRISE_LOGO_URL) {
return '/static/img/quay-logo.png';
}
return Features.ENTERPRISE_LOGO_URL;
};
}
function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiService, $routeParams, $rootScope, $location, $timeout) {