diff --git a/templates/common/base.html b/templates/common/base.html index da444d54..f203a48c 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -353,6 +353,8 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). }); initLocalizer(); + // Workaround to fix scrollbar in navigation sidebar. + window.dispatchEvent(new Event('resize')); }); {{- end}} diff --git a/templates/common/login.html b/templates/common/login.html index e35fe382..45964f4b 100644 --- a/templates/common/login.html +++ b/templates/common/login.html @@ -77,7 +77,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). {{- end}} + {{- if or (.AltLoginURL) (gt (len .Languages) 1) (and .Branding.DisclaimerName .Branding.DisclaimerPath)}}
+ {{- end}}
diff --git a/templates/webadmin/login.html b/templates/webadmin/login.html deleted file mode 100644 index 62118b13..00000000 --- a/templates/webadmin/login.html +++ /dev/null @@ -1,99 +0,0 @@ - -{{- template "baselogin" .}} - -{{- define "content"}} -
-
-
-
- Logo -
-
-

- {{.Branding.ShortName}} -

-
-
-
- {{- template "errmsg" .Error}} - {{- if not .FormDisabled}} -
- -
-
-
- - - - - - - - - - - - - - -
-
- {{- if .ForgotPwdURL}} - Forgot Password ? - {{- end}} -
-
- {{- end}} -
- {{- if not .FormDisabled}} - - - {{- end}} - {{- if .OpenIDLoginURL}} - - Logo - Sign in with OpenID - - {{- end}} -
-
-
-
-
- -
-
- {{- if .AltLoginURL}} - - - - {{- end}} - {{- if and .Branding.DisclaimerName .Branding.DisclaimerPath}} - - {{.Branding.DisclaimerName}} - - {{- end}} -
-
-{{end}} \ No newline at end of file diff --git a/templates/webclient/sharelogin.html b/templates/webclient/sharelogin.html index d37d92d9..eb9436b3 100644 --- a/templates/webclient/sharelogin.html +++ b/templates/webclient/sharelogin.html @@ -60,7 +60,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
+{{- if gt (len .Languages) 1}}
+{{- end}}