Browse Source

pass plan to payment page to get the number of collaborators

Henry Oswald 12 years ago
parent
commit
b2b13ef9a7

+ 1 - 0
services/web/app/coffee/Features/Subscription/SubscriptionController.coffee

@@ -54,6 +54,7 @@ module.exports = SubscriptionController =
 								title      : "subscribe"
 								title      : "subscribe"
 								plan_code: req.query.planCode
 								plan_code: req.query.planCode
 								currency: currency
 								currency: currency
+								plan:plan
 								recurlyConfig: JSON.stringify
 								recurlyConfig: JSON.stringify
 									currency: currency
 									currency: currency
 									subdomain: Settings.apis.recurly.subdomain
 									subdomain: Settings.apis.recurly.subdomain

+ 6 - 1
services/web/app/views/subscriptions/new.jade

@@ -33,12 +33,17 @@ block content
 											ng-click="changeCurrency(currency)",
 											ng-click="changeCurrency(currency)",
 										) {{currency}} ({{value['symbol']}})
 										) {{currency}} ({{value['symbol']}})
 
 
+
 					.row
 					.row
 						.col-md-12.paymentPageFeatures
 						.col-md-12.paymentPageFeatures
 							ul.list-unstyled
 							ul.list-unstyled
 								li 
 								li 
+									if plan.features.collaborators == -1
+										- var collaboratorCount = 'Unlimited'
+									else
+										- var collaboratorCount = plan.features.collaborators
 									i.fa.fa-check
 									i.fa.fa-check
-									|  #{translate("collabs_per_proj", {collabcount:6})}
+									|  #{translate("collabs_per_proj", {collabcount:collaboratorCount})}
 								li 
 								li 
 									i.fa.fa-check
 									i.fa.fa-check
 									|  #{translate("full_doc_history")}
 									|  #{translate("full_doc_history")}