mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-25 21:44:20 -04:00
hide navbar when only 1 sign-in method is available (#2648)
This commit is contained in:
parent
a79af9cf6f
commit
fcca037576
@ -1,11 +1,11 @@
|
|||||||
|
{{if .EnableOpenIDSignIn}}
|
||||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar">
|
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar">
|
||||||
<a class="{{if .PageIsLogin}}active{{end}} item" href="{{AppSubUrl}}/user/login">
|
<a class="{{if .PageIsLogin}}active{{end}} item" href="{{AppSubUrl}}/user/login">
|
||||||
{{.i18n.Tr "auth.login_userpass"}}
|
{{.i18n.Tr "auth.login_userpass"}}
|
||||||
</a>
|
</a>
|
||||||
{{if .EnableOpenIDSignIn}}
|
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" href="{{AppSubUrl}}/user/login/openid">
|
||||||
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" href="{{AppSubUrl}}/user/login/openid">
|
<i class="fa fa-openid"></i>
|
||||||
<i class="fa fa-openid"></i>
|
OpenID
|
||||||
OpenID
|
</a>
|
||||||
</a>
|
|
||||||
{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user