[MediaWiki-commits] [Gerrit] Copy unchanged files from default to custom as preparation f... - change (wikimedia...modifications)
Aklapper has uploaded a new change for review. https://gerrit.wikimedia.org/r/68717 Change subject: Copy unchanged files from default to custom as preparation for custom changes .. Copy unchanged files from default to custom as preparation for custom changes Bug: 24992 Change-Id: I1dac7f5b5e177ff580e3eacfc179af9a742eaca1 --- A bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl A bugzilla-4.2/template/en/custom/account/auth/login.html.tmpl 2 files changed, 252 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/bugzilla/modifications refs/changes/17/68717/1 diff --git a/bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl b/bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl new file mode 100644 index 000..cb43354 --- /dev/null +++ b/bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl @@ -0,0 +1,129 @@ +[%# 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/ + # + # Software distributed under the License is distributed on an AS + # IS basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Jacob Steenhagen j...@bugzilla.org + #%] + +[% PROCESS global/variables.none.tmpl %] + +[%# Use the current script name. If an empty name is returned, + # then we are accessing the home page. %] + +[% login_target = cgi.url(-relative = 1, -query = 1) %] +[% IF !login_target OR login_target.match(^token.cgi) %] + [% login_target = index.cgi %] +[% END %] + +[% login_target = urlbase _ login_target %] + +li id=mini_login_container[% qs_suffix %] + span class=separator| /span + [% connector = ? %] + [% IF cgi.request_method == GET AND cgi.query_string %] +[% connector = %] + [% END %] + [% script_url = login_target _ connector _ GoAheadAndLogIn=1 %] + a id=login_link[% qs_suffix %] href=[% script_url FILTER html %] + onclick=return show_mini_login_form('[% qs_suffix %]')Log In/a + + [% Hook.process('additional_methods') %] + + form action=[% login_target FILTER html %] method=POST +class=mini_login bz_default_hidden +id=mini_login[% qs_suffix FILTER html %] +onsubmit=return check_mini_login_fields( '[% qs_suffix FILTER html %]' ); + +input id=Bugzilla_login[% qs_suffix FILTER html %] + class=bz_login + name=Bugzilla_login + title=Login + onfocus=mini_login_on_focus('[% qs_suffix FILTER js %]') + +input class=bz_password + id=Bugzilla_password[% qs_suffix FILTER html %] + name=Bugzilla_password + type=password + title=Password + +input class=bz_password bz_default_hidden bz_mini_login_help type=text + id=Bugzilla_password_dummy[% qs_suffix %] value=password + title=Password + onfocus=mini_login_on_focus('[% qs_suffix FILTER js %]') + +[% IF Param('rememberlogin') == 'defaulton' || + Param('rememberlogin') == 'defaultoff' +%] + input type=checkbox id=Bugzilla_remember[% qs_suffix %] + name=Bugzilla_remember value=on class=bz_remember + [%+ checked IF Param('rememberlogin') == defaulton %] + label for=Bugzilla_remember[% qs_suffix %]Remember/label +[% END %] +input type=submit name=GoAheadAndLogIn value=Log in +id=log_in[% qs_suffix %] +script type=text/javascript + mini_login_constants = { + login : login, + warning : You must set the login and password before logging in. + }; + [%# We need this event to fire after autocomplete, because it does +# something different depending on whether or not there's already +# data in the login and password box. +# However, autocomplete happens at all sorts of different times in +# different browsers (before or after onDOMReady, before or after +# window.onload, in almost all combinations you can imagine). +# The only good solution I found is to time the event 200 +# milliseconds after window.onload for WebKit (doing it immediately +# at onload works in Chrome but not in Safari, but I can't detect +# them separately using YUI), and right after onDOMReady in Gecko. +# The WebKit solution is also fairly guaranteed to work on any +
[MediaWiki-commits] [Gerrit] Copy unchanged files from default to custom as preparation f... - change (wikimedia...modifications)
Dzahn has submitted this change and it was merged. Change subject: Copy unchanged files from default to custom as preparation for custom changes .. Copy unchanged files from default to custom as preparation for custom changes Bug: 24992 Change-Id: I1dac7f5b5e177ff580e3eacfc179af9a742eaca1 --- A bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl A bugzilla-4.2/template/en/custom/account/auth/login.html.tmpl 2 files changed, 252 insertions(+), 0 deletions(-) Approvals: Aklapper: Looks good to me, but someone else must approve Dzahn: Verified; Looks good to me, approved diff --git a/bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl b/bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl new file mode 100644 index 000..cb43354 --- /dev/null +++ b/bugzilla-4.2/template/en/custom/account/auth/login-small.html.tmpl @@ -0,0 +1,129 @@ +[%# 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/ + # + # Software distributed under the License is distributed on an AS + # IS basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Jacob Steenhagen j...@bugzilla.org + #%] + +[% PROCESS global/variables.none.tmpl %] + +[%# Use the current script name. If an empty name is returned, + # then we are accessing the home page. %] + +[% login_target = cgi.url(-relative = 1, -query = 1) %] +[% IF !login_target OR login_target.match(^token.cgi) %] + [% login_target = index.cgi %] +[% END %] + +[% login_target = urlbase _ login_target %] + +li id=mini_login_container[% qs_suffix %] + span class=separator| /span + [% connector = ? %] + [% IF cgi.request_method == GET AND cgi.query_string %] +[% connector = %] + [% END %] + [% script_url = login_target _ connector _ GoAheadAndLogIn=1 %] + a id=login_link[% qs_suffix %] href=[% script_url FILTER html %] + onclick=return show_mini_login_form('[% qs_suffix %]')Log In/a + + [% Hook.process('additional_methods') %] + + form action=[% login_target FILTER html %] method=POST +class=mini_login bz_default_hidden +id=mini_login[% qs_suffix FILTER html %] +onsubmit=return check_mini_login_fields( '[% qs_suffix FILTER html %]' ); + +input id=Bugzilla_login[% qs_suffix FILTER html %] + class=bz_login + name=Bugzilla_login + title=Login + onfocus=mini_login_on_focus('[% qs_suffix FILTER js %]') + +input class=bz_password + id=Bugzilla_password[% qs_suffix FILTER html %] + name=Bugzilla_password + type=password + title=Password + +input class=bz_password bz_default_hidden bz_mini_login_help type=text + id=Bugzilla_password_dummy[% qs_suffix %] value=password + title=Password + onfocus=mini_login_on_focus('[% qs_suffix FILTER js %]') + +[% IF Param('rememberlogin') == 'defaulton' || + Param('rememberlogin') == 'defaultoff' +%] + input type=checkbox id=Bugzilla_remember[% qs_suffix %] + name=Bugzilla_remember value=on class=bz_remember + [%+ checked IF Param('rememberlogin') == defaulton %] + label for=Bugzilla_remember[% qs_suffix %]Remember/label +[% END %] +input type=submit name=GoAheadAndLogIn value=Log in +id=log_in[% qs_suffix %] +script type=text/javascript + mini_login_constants = { + login : login, + warning : You must set the login and password before logging in. + }; + [%# We need this event to fire after autocomplete, because it does +# something different depending on whether or not there's already +# data in the login and password box. +# However, autocomplete happens at all sorts of different times in +# different browsers (before or after onDOMReady, before or after +# window.onload, in almost all combinations you can imagine). +# The only good solution I found is to time the event 200 +# milliseconds after window.onload for WebKit (doing it immediately +# at onload works in Chrome but not in Safari, but I can't detect +# them separately using YUI), and right after onDOMReady in Gecko. +# The WebKit solution is also fairly guaranteed to work on any +# browser (it's