{{define "oauth-buttons"}} {{ if or .SlackEnabled .WriteAsEnabled .GitLabEnabled .GiteaEnabled .GenericEnabled }}
{{ if .SlackEnabled }} Sign in with Slack {{ end }} {{ if .WriteAsEnabled }} Sign in with Write.as {{ end }} {{ if .GitLabEnabled }} Sign in with {{.GitLabDisplayName}} {{ end }} {{ if .GiteaEnabled }} Sign in with {{.GiteaDisplayName}} {{ end }} {{ if .GenericEnabled }} Sign in with {{.GenericDisplayName}} {{ end }}
{{if not .DisablePasswordAuth}}

or


{{end}} {{ end }} {{end}}