From 890a609c4e82d325f51f4550acba6b13c87d3292 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 20 Apr 2024 22:08:03 -0500 Subject: [PATCH] Un-extract templates --- templates/base/head_navbar.tmpl | 331 +++++++++++--------------- templates/user/auth/signin_inner.tmpl | 72 ++---- 2 files changed, 159 insertions(+), 244 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 068271bbe9..e40e0ca4ff 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -3,203 +3,158 @@ {{$notificationUnreadCount = call .NotificationUnreadCount}} {{end}} - diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index 9872096fbc..12cb01e0ef 100644 --- a/templates/user/auth/signin_inner.tmpl +++ b/templates/user/auth/signin_inner.tmpl @@ -1,5 +1,5 @@ {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}} -{{template "base/alert" .}} + {{template "base/alert" .}} {{end}}

{{if .LinkAccountMode}} @@ -9,62 +9,22 @@ {{end}}

-
- {{.CsrfTokenHtml}} -
- - -
- {{if or (not .DisablePassword) .LinkAccountMode}} -
- - -
- {{end}} - {{if not .LinkAccountMode}} -
-
- - -
-
- {{end}} - - {{template "user/auth/captcha" .}} - -
- - {{ctx.Locale.Tr "auth.forgot_password"}} -
- - {{if .ShowRegistrationButton}} - - {{end}} - - {{if .OAuth2Providers}} -
- {{ctx.Locale.Tr "sign_in_or"}} -
-
-
-
- {{range $provider := .OAuth2Providers}} - - {{end}} + + {{.CsrfTokenHtml}} + +{{if .OAuth2Providers}} + -
- {{end}} +{{end}}