Start on revamp of the plans page
This PR implements the hosted side; QE side will come in the next PR First steps in #559
This commit is contained in:
parent
f867ac5bfe
commit
9a39859221
5 changed files with 583 additions and 135 deletions
|
@ -4,7 +4,8 @@
|
|||
*/
|
||||
angular.module('quayPages').config(['pages', function(pages) {
|
||||
pages.create('plans', 'plans.html', PlansCtrl, {
|
||||
'title': 'Plans and Pricing'
|
||||
'title': 'Plans and Pricing',
|
||||
'newLayout': true
|
||||
});
|
||||
}]);
|
||||
|
||||
|
@ -30,6 +31,14 @@
|
|||
PlanService.getPlans(function(plans) {
|
||||
$scope.plans = plans;
|
||||
|
||||
for (var i = 0; i < $scope.plans.length; ++i) {
|
||||
var plan = plans[i];
|
||||
if (plan.privateRepos > 20 && !plan.plans_page_hidden) {
|
||||
$scope.dropdownPlan = plan.stripeId;
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if ($scope && $routeParams['trial-plan']) {
|
||||
$scope.buyNow($routeParams['trial-plan']);
|
||||
}
|
||||
|
|
Reference in a new issue