{{ template "header" .}}

{{ .title }}

{{ if and .DisableSignup (ne .title "Login") }}

{{ .locale.Tr "auth.signup-disabled" }}

{{ else }}
{{ if not .disableForm }}
{{ if eq .title "Login" }}
{{ if not .DisableSignup }} {{ .locale.Tr "auth.register-instead" }} → {{ end }}
{{ else }}
{{ .locale.Tr "auth.login-instead" }} →
{{ end }} {{ .csrfHtml }}
{{ end }} {{ if or .githubOauth .giteaOauth }} {{ if not .disableForm }}

{{ end }}
{{ if .githubOauth }} {{ .locale.Tr "auth.github-oauth" }} {{ end }} {{ if .giteaOauth }} {{ .locale.Tr "auth.gitea-oauth" }} {{ end }}
{{ end }}
{{ end }}
{{ template "footer" .}}