summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/common-links.html.tmpl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-06-05 00:54:38 +0200
committermkanat%bugzilla.org <>2009-06-05 00:54:38 +0200
commit31570d1a282a92dd2f9f745414c2c40dbd4bdff1 (patch)
treeff6c0b961ddd676440f41e7920c4e9dec05f3b91 /template/en/default/global/common-links.html.tmpl
parentf78ab4f463a42bd2a6368f958d831725148bcf9b (diff)
downloadbugzilla-31570d1a282a92dd2f9f745414c2c40dbd4bdff1.tar.gz
bugzilla-31570d1a282a92dd2f9f745414c2c40dbd4bdff1.tar.xz
Bug 493642: Never include hidden_fields in the header/footer login form, and when a REQUIRE_LOGIN page shows a login form, hide the header/footer login form.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/global/common-links.html.tmpl')
-rw-r--r--template/en/default/global/common-links.html.tmpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl
index 8ab2a2b02..b775da3e8 100644
--- a/template/en/default/global/common-links.html.tmpl
+++ b/template/en/default/global/common-links.html.tmpl
@@ -89,7 +89,14 @@
</li>
[% END %]
- [% IF user.authorizer.can_login %]
+ [%# Only display one login form when we're on a LOGIN_REQUIRED page. That
+ # way, we're guaranteed that the user will use the form that has
+ # hidden_fields in it (the center form) instead of this one. Also, it's
+ # less confusing to have one form (as opposed to three) when you're
+ # required to log in.
+ #%]
+ [% USE Bugzilla %]
+ [% IF user.authorizer.can_login && !Bugzilla.page_requires_login %]
[% PROCESS "account/auth/login-small.html.tmpl" %]
[% END %]
[% END %]