Merge pull request #195 from coreos-inc/tidy

Delete all the old UI code and branches for new UI
This commit is contained in:
Jake Moshenko 2015-06-30 14:34:43 -04:00
commit 411ddceee0
63 changed files with 312 additions and 4719 deletions

View file

@ -14,9 +14,7 @@ angular.module('quay').factory('AvatarService', ['Config', '$sanitize', 'md5',
break;
case 'gravatar':
// TODO(jschorr): Remove once the new layout is in place everywhere.
var default_kind = Config.isNewLayout() ? '404' : 'identicon';
return '//www.gravatar.com/avatar/' + hash + '?d=' + default_kind + '&size=' + size;
return '//www.gravatar.com/avatar/' + hash + '?d=404&size=' + size;
break;
}
};

View file

@ -71,10 +71,5 @@ angular.module('quay').factory('Config', [function() {
return value;
};
config.isNewLayout = function() {
// TODO(jschorr): Remove in the cleanup CL.
return true;
};
return config;
}]);

View file

@ -56,20 +56,10 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
'<br><br>Please upgrade your plan to avoid disruptions in service.',
'page': function(metadata) {
var organization = UserService.getOrganization(metadata['namespace']);
// TODO(jschorr): Remove once the new layout is in prod.
if (Config.isNewLayout()) {
if (organization) {
return '/organization/' + metadata['namespace'] + '?tab=billing';
} else {
return '/user/' + metadata['namespace'] + '?tab=billing';
}
}
if (organization) {
return '/organization/' + metadata['namespace'] + '/admin';
return '/organization/' + metadata['namespace'] + '?tab=billing';
} else {
return '/user';
return '/user/' + metadata['namespace'] + '?tab=billing';
}
}
},

View file

@ -23,10 +23,6 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
var redirect_uri = KeyService['githubRedirectUri'] + '/trigger/' +
namespace + '/' + repository;
if (Config.isNewLayout()) {
redirect_uri += '/__new';
}
var authorize_url = KeyService['githubTriggerAuthorizeUrl'];
var client_id = KeyService['githubTriggerClientId'];