mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-23 02:56:21 +00:00
Merge pull request #22264 from overleaf/msm-login_support_text-env
[web] Add `OVERLEAF_LOGIN_SUPPORT_TEXT` for CE/SP login pages GitOrigin-RevId: 7f473b6a3448b4cb73c0c954d0ea1db34b980d6c
This commit is contained in:
parent
0e6318ea0c
commit
fe623d2297
4 changed files with 13 additions and 0 deletions
|
@ -331,6 +331,10 @@ if (process.env.OVERLEAF_HEADER_EXTRAS != null) {
|
|||
}
|
||||
}
|
||||
|
||||
if (process.env.OVERLEAF_LOGIN_SUPPORT_TEXT != null) {
|
||||
settings.nav.login_support_text = process.env.OVERLEAF_LOGIN_SUPPORT_TEXT
|
||||
}
|
||||
|
||||
// Sending Email
|
||||
// -------------
|
||||
//
|
||||
|
|
|
@ -222,6 +222,7 @@ const UserPagesController = {
|
|||
}
|
||||
res.render('user/login', {
|
||||
title: 'login',
|
||||
login_support_text: Settings.nav?.login_support_text,
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
@ -40,3 +40,7 @@ block content
|
|||
span(data-ol-inflight="idle") #{translate("login")}
|
||||
span(hidden data-ol-inflight="pending") #{translate("logging_in")}…
|
||||
a.pull-right(href='/user/password/reset') #{translate("forgot_your_password")}?
|
||||
if login_support_text
|
||||
hr
|
||||
p.text-center !{login_support_text}
|
||||
|
||||
|
|
|
@ -285,3 +285,7 @@ input[type='button'] {
|
|||
padding-left: 20px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.login-btn-dynamic-text {
|
||||
white-space: normal;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue