|
|
@ -54,33 +54,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{if and .OrderedOAuth2Names .OAuth2Providers}}
|
|
|
|
{{if and .OrderedOAuth2Names .OAuth2Providers}}
|
|
|
|
<hr class="ui divider"/>
|
|
|
|
<hr class="ui divider"/>
|
|
|
|
<div class="oauth2 center">
|
|
|
|
<div id="oauth2-login-navigator">
|
|
|
|
<div id="oauth2-login-loader" class="ui disabled centered loader"></div>
|
|
|
|
<div id="oauth2-login-navigator-inner" class="gt-df gt-jc">
|
|
|
|
<div>
|
|
|
|
<span class="gt-self-center gt-mr-3">{{.locale.Tr "sign_in_with"}}</span>
|
|
|
|
<div id="oauth2-login-navigator" class="gt-df gt-jc">
|
|
|
|
<div class="gt-df gt-fw gt-gap-4">
|
|
|
|
<span class="gt-self-center gt-mr-3">{{.locale.Tr "sign_in_with"}}</span>
|
|
|
|
{{range $key := .OrderedOAuth2Names}}
|
|
|
|
<div class="gt-df gt-fw gt-gap-4">
|
|
|
|
{{$provider := index $.OAuth2Providers $key}}
|
|
|
|
{{range $key := .OrderedOAuth2Names}}
|
|
|
|
<a class="{{$provider.Name}} silenced oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$key}}" data-tooltip-content="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}">
|
|
|
|
{{$provider := index $.OAuth2Providers $key}}
|
|
|
|
{{if eq $provider.Name "github"}}
|
|
|
|
<a class="{{$provider.Name}} silenced oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$key}}" data-tooltip-content="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}">
|
|
|
|
{{svg "octicon-mark-github" 40}}
|
|
|
|
{{if eq $provider.Name "github"}}
|
|
|
|
{{else if eq $provider.Name "gitlab"}}
|
|
|
|
{{svg "octicon-mark-github" 40}}
|
|
|
|
{{svg "gitea-gitlab" 40}}
|
|
|
|
{{else if eq $provider.Name "gitlab"}}
|
|
|
|
{{else if eq $provider.Name "openidConnect"}}
|
|
|
|
{{svg "gitea-gitlab" 40}}
|
|
|
|
{{svg "gitea-openid" 40}}
|
|
|
|
{{else if eq $provider.Name "openidConnect"}}
|
|
|
|
{{else}}
|
|
|
|
{{svg "gitea-openid" 40}}
|
|
|
|
<img
|
|
|
|
{{else}}
|
|
|
|
class="gt-object-contain"
|
|
|
|
<img
|
|
|
|
width="40"
|
|
|
|
class="gt-object-contain"
|
|
|
|
height="40"
|
|
|
|
width="40"
|
|
|
|
alt="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
|
|
|
|
height="40"
|
|
|
|
src="{{AppSubUrl}}{{$provider.Image}}"
|
|
|
|
alt="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
|
|
|
|
>
|
|
|
|
src="{{AppSubUrl}}{{$provider.Image}}"
|
|
|
|
{{end}}
|
|
|
|
>
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|