hide navbar when only 1 sign-in method is available (#2648)

tokarchuk/v1.17
Kazuki Sawada 7 years ago committed by Lauris BH
parent a79af9cf6f
commit fcca037576
  1. 12
      templates/user/auth/signin_navbar.tmpl

@ -1,11 +1,11 @@
{{if .EnableOpenIDSignIn}}
<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">
{{.i18n.Tr "auth.login_userpass"}}
</a>
{{if .EnableOpenIDSignIn}}
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" href="{{AppSubUrl}}/user/login/openid">
<i class="fa fa-openid"></i>
&nbsp;OpenID
</a>
{{end}}
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" href="{{AppSubUrl}}/user/login/openid">
<i class="fa fa-openid"></i>
&nbsp;OpenID
</a>
</div>
{{end}}

Loading…
Cancel
Save