mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 02:05:22 -05:00
Add new "Premium Features" link on the navbar "Features & Benefits", and hide it behind the "premium-features-discoverability" split test (#8269)
GitOrigin-RevId: 5dae86818a485c74078683422ec44008fd754f27
This commit is contained in:
parent
2ab5189771
commit
4f127f8408
3 changed files with 30 additions and 1 deletions
|
@ -78,7 +78,10 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
|
|||
webRouter.get(
|
||||
'*',
|
||||
expressify(
|
||||
SplitTestMiddleware.loadAssignmentsInLocals(['unified-navigation'])
|
||||
SplitTestMiddleware.loadAssignmentsInLocals([
|
||||
'unified-navigation',
|
||||
'premium-features-discoverability',
|
||||
])
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -75,6 +75,19 @@ nav.navbar.navbar-default.navbar-main
|
|||
each child in item.dropdown
|
||||
if child.divider
|
||||
li.divider
|
||||
if child.splitTest
|
||||
if (splitTestVariants && (splitTestVariants[child.splitTest.name] === child.splitTest.variant))
|
||||
li
|
||||
if child.url
|
||||
a(
|
||||
href=child.url,
|
||||
class=child.class,
|
||||
event-tracking=child.event
|
||||
event-tracking-mb="true"
|
||||
event-tracking-trigger="click"
|
||||
) !{translate(child.text)}
|
||||
else
|
||||
| !{translate(child.text)}
|
||||
else
|
||||
li
|
||||
if child.url
|
||||
|
|
|
@ -58,6 +58,19 @@ nav.navbar.navbar-default.navbar-main
|
|||
each child in item.dropdown
|
||||
if child.divider
|
||||
li.divider
|
||||
if child.splitTest
|
||||
if (splitTestVariants && (splitTestVariants[child.splitTest.name] === child.splitTest.variant))
|
||||
li
|
||||
if child.url
|
||||
a(
|
||||
href=child.url,
|
||||
class=child.class,
|
||||
event-tracking=child.event
|
||||
event-tracking-mb="true"
|
||||
event-tracking-trigger="click"
|
||||
) !{translate(child.text)}
|
||||
else
|
||||
| !{translate(child.text)}
|
||||
else
|
||||
li
|
||||
if child.url
|
||||
|
|
Loading…
Reference in a new issue