2020-08-19 19:31:07 +02:00
|
|
|
{{define "oauth-buttons"}}
|
|
|
|
{{ if or .SlackEnabled .WriteAsEnabled .GitLabEnabled .GiteaEnabled .GenericEnabled }}
|
|
|
|
<div class="row content-container signinbtns">
|
|
|
|
{{ if .SlackEnabled }}
|
|
|
|
<a class="loginbtn" href="/oauth/slack"><img alt="Sign in with Slack" height="40" width="172" src="/img/sign_in_with_slack.png" srcset="/img/sign_in_with_slack.png 1x, /img/sign_in_with_slack@2x.png 2x" /></a>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .WriteAsEnabled }}
|
2020-08-19 21:14:29 +02:00
|
|
|
<a class="btn cta loginbtn" id="writeas-login" href="/oauth/write.as">
|
|
|
|
<img src="/img/mark/writeas-white.png" />
|
|
|
|
Sign in with <strong>Write.as</strong>
|
|
|
|
</a>
|
2020-08-19 19:31:07 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ if .GitLabEnabled }}
|
2020-08-19 21:14:29 +02:00
|
|
|
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab">
|
|
|
|
<img src="/img/mark/gitlab.png" />
|
|
|
|
Sign in with <strong>{{.GitLabDisplayName}}</strong>
|
|
|
|
</a>
|
2020-08-19 19:31:07 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ if .GiteaEnabled }}
|
2020-08-19 21:14:29 +02:00
|
|
|
<a class="btn cta loginbtn" id="gitea-login" href="/oauth/gitea">
|
|
|
|
<img src="/img/mark/gitea.png" />
|
|
|
|
Sign in with <strong>{{.GiteaDisplayName}}</strong>
|
|
|
|
</a>
|
2020-08-19 19:31:07 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ if .GenericEnabled }}
|
|
|
|
<a class="btn cta loginbtn" id="generic-oauth-login" href="/oauth/generic">Sign in with <strong>{{.GenericDisplayName}}</strong></a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if not .DisablePasswordAuth}}
|
|
|
|
<div class="or">
|
|
|
|
<p>or</p>
|
|
|
|
<hr class="short" />
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{ end }}
|
|
|
|
{{end}}
|