mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 12:13:43 -05:00
Merge pull request #12187 from overleaf/jpa-mf-old-plans-page-annual-variant
Differentiate user that visits from before the fix and after the fix GitOrigin-RevId: 4c3c4b47dc3329b97da79adcb2a45bf95b0ff27a
This commit is contained in:
parent
7ae5a9f060
commit
6da00de5ea
3 changed files with 9 additions and 3 deletions
|
@ -64,6 +64,12 @@ async function plansPage(req, res) {
|
||||||
res,
|
res,
|
||||||
'plans-page-layout-v3'
|
'plans-page-layout-v3'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (plansPageLayoutV3Assignment.variant === 'old-plans-page-annual') {
|
||||||
|
plansPageLayoutV3Assignment.variant = 'old-plans-page-annual-fixed'
|
||||||
|
res.locals.splitTestVariants['plans-page-layout-v3'] =
|
||||||
|
'old-plans-page-annual-fixed'
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(
|
logger.error(
|
||||||
{ err: error },
|
{ err: error },
|
||||||
|
@ -73,7 +79,7 @@ async function plansPage(req, res) {
|
||||||
|
|
||||||
let currentView = 'monthly'
|
let currentView = 'monthly'
|
||||||
if (
|
if (
|
||||||
plansPageLayoutV3Assignment.variant === 'old-plans-page-annual' ||
|
plansPageLayoutV3Assignment.variant === 'old-plans-page-annual-fixed' ||
|
||||||
plansPageLayoutV3Assignment.variant === 'new-plans-page'
|
plansPageLayoutV3Assignment.variant === 'new-plans-page'
|
||||||
) {
|
) {
|
||||||
currentView = 'annual'
|
currentView = 'annual'
|
||||||
|
|
|
@ -63,7 +63,7 @@ block content
|
||||||
h2 #{translate('compare_plan_features')}
|
h2 #{translate('compare_plan_features')}
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-md-offset-3
|
.col-md-6.col-md-offset-3
|
||||||
if (plansPageLayoutV3Variant === 'old-plans-page-annual')
|
if (plansPageLayoutV3Variant === 'old-plans-page-annual-fixed')
|
||||||
+plan_switch_annual_default('table')
|
+plan_switch_annual_default('table')
|
||||||
else
|
else
|
||||||
+plan_switch('table')
|
+plan_switch('table')
|
||||||
|
|
|
@ -240,7 +240,7 @@ mixin allCardsAndControls(controlsRowSpaced, listLocation)
|
||||||
- var location = listLocation ? 'card_' + listLocation : 'card'
|
- var location = listLocation ? 'card_' + listLocation : 'card'
|
||||||
.row.top-switch(class=(controlsRowSpaced ? "row-spaced" : ""))
|
.row.top-switch(class=(controlsRowSpaced ? "row-spaced" : ""))
|
||||||
.col-md-6.col-md-offset-3
|
.col-md-6.col-md-offset-3
|
||||||
if (plansPageLayoutV3Variant === 'old-plans-page-annual')
|
if (plansPageLayoutV3Variant === 'old-plans-page-annual-fixed')
|
||||||
+plan_switch_annual_default(location)
|
+plan_switch_annual_default(location)
|
||||||
else
|
else
|
||||||
+plan_switch(location)
|
+plan_switch(location)
|
||||||
|
|
Loading…
Reference in a new issue