mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user