Fix login.tmpl rendering
This passes in the correct field named GitlabDisplayName.
This commit is contained in:
parent
06054a2cd7
commit
79a968f425
2 changed files with 9 additions and 9 deletions
|
@ -309,7 +309,7 @@ func viewLogin(app *App, w http.ResponseWriter, r *http.Request) error {
|
|||
OauthSlack bool
|
||||
OauthWriteAs bool
|
||||
OauthGitlab bool
|
||||
GitlabHost string
|
||||
GitlabDisplayName string
|
||||
}{
|
||||
pageForReq(app, r),
|
||||
r.FormValue("to"),
|
||||
|
|
|
@ -55,7 +55,7 @@ hr.short {
|
|||
<a class="btn cta loginbtn" id="writeas-login" href="/oauth/write.as">Sign in with <strong>Write.as</strong></a>
|
||||
{{ end }}
|
||||
{{ if .OauthGitlab }}
|
||||
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab">Sign in with <strong>{{ .GitlabDisplayName }}</strong></a>
|
||||
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab">Sign in with <strong>{{.GitlabDisplayName}}</strong></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue