mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-02 03:01:29 +00:00
* [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
31 lines
1.3 KiB
Text
31 lines
1.3 KiB
Text
extends ../../layout-react
|
|
|
|
block vars
|
|
- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
|
|
- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
|
|
|
|
block content
|
|
- var colClass = bootstrapVersion === 5 ? 'col-lg-8 m-auto' : 'col-md-8 col-md-offset-2'
|
|
|
|
main.content.content-alt.team-invite#main-content
|
|
.container
|
|
.row
|
|
div(class=colClass)
|
|
.card.text-center
|
|
.card-body
|
|
.page-header
|
|
// TODO: Remove `team-invite-name` once we fully migrated to Bootstrap 5
|
|
h1.text-centered !{translate("invited_to_group", {inviterName: inviterName, appName: appName }, [{name: 'span', attrs: {class: 'team-invite-name'}}])}
|
|
|
|
if (accountExists)
|
|
div
|
|
p #{translate("invited_to_group_login_benefits", {appName: appName})}
|
|
p #{translate("invited_to_group_login", {emailAddress: emailAddress})}
|
|
p
|
|
a.btn.btn-primary(href=`/login?redir=/subscription/invites/${inviteToken}`) #{translate("login_to_accept_invitation")}
|
|
else
|
|
div
|
|
p #{translate("invited_to_group_register_benefits", {appName: appName})}
|
|
p #{translate("invited_to_group_register", {inviterName: inviterName})}
|
|
p
|
|
a.btn.btn-primary(href=`/register?redir=/subscription/invites/${inviteToken}`) #{translate("register_to_accept_invitation")}
|