Skip to content

Commit

Permalink
Fix auth page GitlabName Error (#242)
Browse files Browse the repository at this point in the history
`FTL error="template: auth_form.html:71:65: executing \"auth_form.html\" at <.c.GitLabName>: can't evaluate field GitLabName in type interface {}"`
  • Loading branch information
hitian authored Apr 3, 2024
1 parent 9936c6b commit f154136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pages/auth_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h1 class="text-2xl font-bold leading-tight text-slate-700 dark:text-slate-300">
{{ end }}
{{ if .gitlabOauth }}
<a href="{{ $.c.ExternalUrl }}/oauth/gitlab" class="block w-full mb-2 text-center whitespace-nowrap text-slate-700 dark:text-slate-300{{ if .syncReposFromFS }} text-slate-500 cursor-not-allowed {{ end }}rounded border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800 px-2.5 py-2 text-xs font-medium text-gray-700 dark:text-white shadow-sm hover:bg-gray-100 dark:hover:bg-gray-700 hover:border-gray-500 hover:text-slate-700 dark:hover:text-slate-300 focus:outline-none focus:ring-1 focus:border-primary-500 focus:ring-primary-500 leading-3">
{{ .locale.Tr "auth.oauth" .c.GitLabName}}
{{ .locale.Tr "auth.oauth" .c.GitlabName}}
</a>
{{ end }}
{{ if .giteaOauth }}
Expand Down

0 comments on commit f154136

Please sign in to comment.