aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-04-10 01:42:38 +0200
committerGitHub <noreply@github.com>2021-04-09 19:42:38 -0400
commit216976247c1bb958f01a0b33c5f457d7fed62a4d (patch)
tree52b5013ceb9fe82e4664a51de2783f1517ff5bfd /templates/user
parentb9ed3cbc26ca20e0c88a66ed42dbc1268a2343bc (diff)
downloadgitea-216976247c1bb958f01a0b33c5f457d7fed62a4d.tar.gz
gitea-216976247c1bb958f01a0b33c5f457d7fed62a4d.zip
Remove usage of JS globals (#15378)
Refactor the exported globals in index.js to JS-initialized event handlers. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/auth/signin_inner.tmpl5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl
index 4d99d378ad..20a286aacb 100644
--- a/templates/user/auth/signin_inner.tmpl
+++ b/templates/user/auth/signin_inner.tmpl
@@ -53,7 +53,7 @@
{{if and .OrderedOAuth2Names .OAuth2Providers}}
<div class="ui attached segment">
<div class="oauth2 center">
- <div id="oauth2-login-loader" class="ui disabled centered loader"></div>
+ <div id="oauth2-login-loader" class="ui disabled centered loader"></div>
<div>
<div id="oauth2-login-navigator">
<p>{{.i18n.Tr "sign_in_with"}}</p>
@@ -63,9 +63,8 @@
<img
alt="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
title="{{$provider.DisplayName}}{{if eq $provider.Name "openidConnect"}} ({{$key}}){{end}}"
- class="{{$provider.Name}}"
+ class="{{$provider.Name}} oauth-login-image"
src="{{AppSubUrl}}{{$provider.Image}}"
- onclick="window.onOAuthLoginClick()"
></a>
{{end}}
</div>