pass plan to payment page to get the number of collaborators

This commit is contained in:
Henry Oswald 2014-10-14 12:14:24 +01:00
parent 19a08f82a6
commit b2b13ef9a7
2 changed files with 7 additions and 1 deletions

View file

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

View file

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