New experimental landing page design

This commit is contained in:
Joseph Schorr 2014-04-13 18:33:32 -04:00
parent 0bd8a1bcbf
commit 50545236e3
10 changed files with 184 additions and 96 deletions

View file

@ -4204,6 +4204,8 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi
});
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
$rootScope.customClass = '';
if (current.$$route.title) {
$rootScope.title = current.$$route.title;
}

View file

@ -262,7 +262,9 @@ function RepoListCtrl($scope, $sanitize, Restangular, UserService, ApiService) {
loadPublicRepos();
}
function LandingCtrl($scope, UserService, ApiService) {
function LandingCtrl($scope, UserService, ApiService, $rootScope) {
$rootScope.customClass = 'landing-page';
$scope.namespace = null;
$scope.$watch('namespace', function(namespace) {