fix which plan is "your plan" on dashboard

This commit is contained in:
Henry Oswald 2014-10-13 16:33:01 +01:00
parent 2bbdea3433
commit 58f6ae323b

View file

@ -16,7 +16,7 @@ mixin printPlan(plan)
td td
-if (subscription.state == "free-trial") -if (subscription.state == "free-trial")
a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success #{translate("subscribe_to_this_plan")} a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success #{translate("subscribe_to_this_plan")}
-else if (plan.planCode == subscription.planCode) -else if (typeof(subscription.planCode) != "undefined" && plan.planCode == subscription.planCode.split("_")[0])
button.btn.disabled #{translate("your_plan")} button.btn.disabled #{translate("your_plan")}
-else -else
form form