Merge pull request #18720 from overleaf/jel-begin-light-touch-plans
[web] Begin light touch redesign of plans page GitOrigin-RevId: dda5ab1c0817371400f30f2e4d230f5c3a5728f4
This commit is contained in:
@@ -147,8 +147,36 @@ async function plansPageLightDesign(req, res) {
|
||||
return res.redirect(302, '/user/subscription/plans')
|
||||
}
|
||||
|
||||
const { currency } = await _getRecommendedCurrency(req, res)
|
||||
|
||||
const language = req.i18n.language || 'en'
|
||||
const currentView = 'annual'
|
||||
const plans = SubscriptionViewModelBuilder.buildPlansList()
|
||||
const groupPlanModalDefaults = _getGroupPlanModalDefaults(req, currency)
|
||||
const formatCurrency = SubscriptionHelper.formatCurrencyDefault
|
||||
|
||||
// TODO: add page view analytics?
|
||||
res.render('subscriptions/plans-light-design', {
|
||||
title: 'plans_and_pricing',
|
||||
currentView,
|
||||
plans,
|
||||
itm_content: req.query?.itm_content,
|
||||
itm_referrer: req.query?.itm_referrer,
|
||||
itm_campaign: 'plans',
|
||||
language,
|
||||
formatCurrency,
|
||||
recommendedCurrency: currency,
|
||||
planFeatures,
|
||||
plansConfig,
|
||||
groupPlans: GroupPlansData,
|
||||
groupPlanModalOptions,
|
||||
groupPlanModalDefaults,
|
||||
initialLocalizedGroupPrice:
|
||||
SubscriptionHelper.generateInitialLocalizedGroupPrice(
|
||||
currency ?? 'USD',
|
||||
language,
|
||||
formatCurrency
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user