diff --git a/static/directives/plan-manager.html b/static/directives/plan-manager.html
index 1633b3435..f9125ead2 100644
--- a/static/directives/plan-manager.html
+++ b/static/directives/plan-manager.html
@@ -62,7 +62,7 @@
+ ng-class="{'active':isPlanActive(plan, subscribedPlan)}">
{{ plan.title }}
diff --git a/static/directives/plans-display.html b/static/directives/plans-display.html
index 27bcbd240..458dfbd17 100644
--- a/static/directives/plans-display.html
+++ b/static/directives/plans-display.html
@@ -170,19 +170,19 @@
-
+
- 5 private repositories
- Unlimited public repos
Great for individuals
-
+
Start Free Trial
@@ -193,12 +193,12 @@
-
+
- 10 private repositories
@@ -206,7 +206,7 @@
- Team-based permissions
Great for startups
-
+
Start Free Trial
@@ -217,12 +217,12 @@
-
+
- 20 private repositories
@@ -230,7 +230,7 @@
- Team-based permissions
Great for small businesses
-
+
Start Free Trial
diff --git a/static/js/directives/ui/plan-manager.js b/static/js/directives/ui/plan-manager.js
index f0061a122..071698534 100644
--- a/static/js/directives/ui/plan-manager.js
+++ b/static/js/directives/ui/plan-manager.js
@@ -29,14 +29,8 @@ angular.module('quay').directive('planManager', function () {
return false;
}
- // A plan is visible if it is not deprecated, or if it is both not superseded
- // by another plan, and also the active plan for the user.
+ // A plan is visible if it is not deprecated, or if it is the namespace's current plan.
if (plan['deprecated']) {
- var superseded = PlanService.getPlanImmediately(plan['superseded_by']);
- if (superseded) {
- return !$scope.isPlanVisible(superseded, subscribedPlan);
- }
-
return subscribedPlan && plan.stripeId === subscribedPlan.stripeId;
}
@@ -44,16 +38,10 @@ angular.module('quay').directive('planManager', function () {
};
$scope.isPlanActive = function(plan, subscribedPlan) {
- // A plan is active if it is either the plan directly subscribed to by the user
- // or the plan which supersedes the plan to which the user is subscribed.
if (!subscribedPlan) {
return false;
}
-
- if (subscribedPlan['deprecated'] && subscribedPlan['superseded_by']) {
- return $scope.isPlanActive(plan, PlanService.getPlanImmediately(subscribedPlan['superseded_by']));
- }
-
+
return plan.stripeId === subscribedPlan.stripeId;
};
|