mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:33:37 -05:00
2c7530a6cf
* [web] Set Subscription pages to have `layout-react`
* [web] import `header-footer-react` in Subscription pages (!!)
* [web] Add `ol-user` meta tag to the subscription pages (!!)
⚠️ invite_logged_out.pug should be updated instead of setting the user as `{}`
* [web] Fix unit test
* [web] Update User types to handle a logged out user, add `LOGGED_OUT_USER` const
* [web] Add type `User` to `getSessionUser`
* [web] Remove `LOGGED_OUT_USER` const
* [web] Just pass `{ id: null }` as the user
* [web] Remove comment in pugs, it breaks things
* [web] Don't pass the full user to the frontend!!!
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
---------
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
GitOrigin-RevId: 1768f1f13de924a18be43c1a08614000500dcbec
20 lines
887 B
Text
20 lines
887 B
Text
extends ../../layout-react
|
|
|
|
block vars
|
|
- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
|
|
- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
|
|
|
|
block entrypointVar
|
|
- entrypoint = 'pages/user/subscription/invite'
|
|
|
|
block append meta
|
|
meta(name="ol-hasIndividualRecurlySubscription" data-type="boolean" content=hasIndividualRecurlySubscription)
|
|
meta(name="ol-inviterName" date-type="string" content=inviterName)
|
|
meta(name="ol-inviteToken" data-type="string" content=inviteToken)
|
|
meta(name="ol-currentManagedUserAdminEmail" data-type="string" content=currentManagedUserAdminEmail)
|
|
meta(name="ol-expired" data-type="boolean" content=expired)
|
|
meta(name="ol-groupSSOActive" data-type="boolean" content=groupSSOActive)
|
|
meta(name="ol-subscriptionId" data-type="string" content=subscriptionId)
|
|
|
|
block content
|
|
main.content.content-alt#invite-root
|