head_navbar: integrate upstream tmpl changes

ref:
https://github.com/go-gitea/gitea/pull/17451
This commit is contained in:
surtur 2021-10-28 12:35:38 +02:00
parent e53748c078
commit f13bb0434b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -192,7 +192,7 @@
{{svg "octicon-person"}} {{.i18n.Tr "register"}}
</a>
{{end}}
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="/user/login?redirect_to={{.CurrentURL}}">
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
{{svg "octicon-sign-in"}} {{.i18n.Tr "sign_in"}}
</a>
</div><!-- end anonymous right menu -->