From c09a9a46b4c20a99a046b8ad67dbae76910e1256 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 12 Feb 2009 06:29:08 +0000 Subject: Bug 476090: Allow users to log-in from toolbar Patch By Guy Pyrzak r=mkanat, a=mkanat --- .../en/default/account/auth/login-small.html.tmpl | 105 ++++++++------------- 1 file changed, 41 insertions(+), 64 deletions(-) (limited to 'template/en/default/account/auth/login-small.html.tmpl') diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index 19aaca11d..56f281b24 100644 --- a/template/en/default/account/auth/login-small.html.tmpl +++ b/template/en/default/account/auth/login-small.html.tmpl @@ -1,4 +1,4 @@ -[%# The contents of this file are subject to the Mozilla Public +[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ @@ -23,68 +23,45 @@ [%# Use the current script name. If an empty name is returned, # then we are accessing the home page. %] -[% script_name = cgi.url(Relative => 1) %] -[% IF !script_name %] - [% script_name = "index.cgi" %] +[% target = cgi.url("-relative" => 1, "-query" => 1) %] +[% IF !target %] + [% target = "index.cgi" %] [% END %] -[%# If SSL is in use, use 'sslbase', else use 'urlbase'. %] -[% IF Param("sslbase") != "" && Param("ssl") != "never" %] - [% script_name = Param("sslbase") _ script_name %] -[% ELSE %] - [% script_name = Param("urlbase") _ script_name %] -[% END %] - -
- - - - - - - - - - - [% IF Param('rememberlogin') == 'defaulton' || - Param('rememberlogin') == 'defaultoff' %] - - - - - [% END %] - - [% IF Param('loginnetmask') < 32 %] - - - - - [% END %] - - - - - [%# For now, password change requests only apply to the DB - # verification method #%] - - [% IF user.authorizer.can_change_password %] - - [% END %] - -
- [% Param('emailsuffix') FILTER html %]
- -
  - - -
  - - -
[ Forgot my Password ]
- -
- +[% target = urlbase _ target %] +
  • + +
  • -- cgit v1.2.3-24-g4f1b