Skip to content

Commit 1c0a355

Browse files
jackHay22dsseng
authored andcommitted
update oauth providers in sign in template
1 parent 7b52201 commit 1c0a355

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

templates/user/auth/signup_inner.tmpl

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,19 @@
5757
{{end}}
5858

5959
{{if and .OrderedOAuth2Names .OAuth2Providers}}
60-
<div class="ui attached segment">
61-
<div class="oauth2 center">
62-
<div id="oauth2-login-loader" class="ui disabled centered loader"></div>
63-
<div>
64-
<div id="oauth2-login-navigator">
65-
<p>{{.i18n.Tr "sign_in_with"}}</p>
66-
{{range $key := .OrderedOAuth2Names}}
67-
{{$provider := index $.OAuth2Providers $key}}
68-
<a href="{{AppSubUrl}}/user/oauth2/{{$key}}">
69-
<img
70-
alt="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
71-
title="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
72-
class="{{$provider.Name}} oauth-login-image"
73-
src="{{AppSubUrl}}{{$provider.Image}}"
74-
></a>
75-
{{end}}
76-
</div>
60+
<div class="divider divider-text">
61+
{{.locale.Tr "sign_in_or"}}
62+
</div>
63+
<div id="oauth2-login-navigator" class="gt-py-2">
64+
<div class="gt-df gt-fc gt-jc">
65+
<div id="oauth2-login-navigator-inner" class="gt-df gt-fc gt-fw gt-ac gt-gap-3">
66+
{{range $key := .OrderedOAuth2Names}}
67+
{{$provider := index $.OAuth2Providers $key}}
68+
<a class="{{$provider.Name}} ui button gt-df gt-ac gt-jc gt-py-3 oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$key}}">
69+
{{$provider.IconHTML}}
70+
{{$.locale.Tr "sign_in_with_provider" $provider.DisplayName}}
71+
</a>
72+
{{end}}
7773
</div>
7874
</div>
7975
</div>

0 commit comments

Comments
 (0)