From b2b13ef9a77fce3a8ec6ae95ac4bdb77746d4319 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 14 Oct 2014 12:14:24 +0100 Subject: [PATCH] pass plan to payment page to get the number of collaborators --- .../Features/Subscription/SubscriptionController.coffee | 1 + services/web/app/views/subscriptions/new.jade | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee index 885e6dcae5..6e4c147e9b 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee @@ -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 diff --git a/services/web/app/views/subscriptions/new.jade b/services/web/app/views/subscriptions/new.jade index 25ff25e9d2..bbbc6dcda7 100644 --- a/services/web/app/views/subscriptions/new.jade +++ b/services/web/app/views/subscriptions/new.jade @@ -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")}