30 lines
1.1 KiB
Handlebars
30 lines
1.1 KiB
Handlebars
{{if or .EnableOpenIDSignIn .EnableSSPI .EnableWechatQRSignIn}}
|
|
<overflow-menu class="ui secondary pointing tabular top attached borderless menu navbar secondary-nav">
|
|
<div class="overflow-menu-items tw-justify-center">
|
|
<a class="{{if .PageIsSignIn}}active {{end}}item" rel="nofollow" href="{{AppSubUrl}}/user/login">
|
|
{{ctx.Locale.Tr "auth.login_userpass"}}
|
|
</a>
|
|
<a class="{{if .PageIsSignUp}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/sign_up">
|
|
{{ctx.Locale.Tr "auth.create_new_account"}}
|
|
</a>
|
|
{{if .EnableWechatQRSignIn}}
|
|
<a class="{{if .PageIsWechatQrLogin}}active {{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login/wechat">
|
|
{{ctx.Locale.Tr "settings.wechat_qr_login"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .EnableOpenIDSignIn}}
|
|
<a class="{{if .PageIsLoginOpenID}}active {{end}}item" rel="nofollow" href="{{AppSubUrl}}/user/login/openid">
|
|
{{svg "fontawesome-openid"}}
|
|
OpenID
|
|
</a>
|
|
{{end}}
|
|
{{if .EnableSSPI}}
|
|
<a class="item" rel="nofollow" href="{{AppSubUrl}}/user/login?auth_with_sspi=1">
|
|
{{svg "fontawesome-windows"}}
|
|
SSPI
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</overflow-menu>
|
|
{{end}}
|