Author: frik85 Date: Thu Jul 26 22:12:37 2007 New Revision: 27867
URL: http://svn.reactos.org/svn/reactos?rev=27867&view=rev Log: ReactOS website - bugzilla:
* commit current template dir
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/ldap-error.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login-small.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/roscms-error.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/cancel-token.txt.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/create.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/created.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-new.txt.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-old.txt.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/confirm.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/exists.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/forgotten-password.txt.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/set-forgotten-password.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/account.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/email.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/footer.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/permissions.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/prefs.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/saved-searches.html.tmpl trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/settings.html.tmpl
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/ldap-error.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/ldap-error.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/ldap-error.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,50 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Bradley Baetz bbaetz@acm.org + #%] + +[%# INTERFACE: + # auth_err_tag: string. The tag for the error + # info: hash. Additional variables which may be used when printing details + # of the error. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% SWITCH auth_err_tag %] + [% CASE "cannot_retreive_attr" %] + The specified LDAP attribute [% info.attr FILTER html %] was not found. + + [% CASE "connect_failed" %] + An error occurred while trying to connect to the LDAP server. + [% IF info.errstr %] + The error from the server was: <tt>[% info.errstr FILTER html %]</tt>. + [% END %] + + [% CASE "no_userid" %] + [% terms.Bugzilla %] created a new account for you, but then could not find the + new userid. + + [% CASE "server_not_defined" %] + The LDAP server for authentication has not been defined. + + [% CASE %] + Unhandled authentication error: <tt>[% auth_err_tag FILTER html %]</tt> + +[% END %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login-small.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login-small.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login-small.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,88 @@ +[%# 1.0@bugzilla.org %] +[%# 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 jake@bugzilla.org + #%] + +[% PROCESS global/variables.none.tmpl %] + +[%# Use the current script name. If an empty name is retuned, + # then we are accessing the home page. %] + +[% script_name = cgi.url(Relative => 1) %] + +[%# 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 %] + +<form name="login" action="[% script_name FILTER html %]" method="POST"> + <table> + <tr> + <td align="right"><b>Login:</b></td> + <td><input size="20" name="Bugzilla_login"></td> + </tr> + <tr> + <td align="right"><b>Password:</b></td> + <td><input type="password" size="20" name="Bugzilla_password"></td> + </tr> + + [% IF Param('rememberlogin') == 'defaulton' || + Param('rememberlogin') == 'defaultoff' %] + <tr> + <td> </td> + <td> + <input type="checkbox" name="Bugzilla_remember" value="on" + [% "checked" IF Param('rememberlogin') == "defaulton" %]> + Remember my Login + </td> + </tr> + [% END %] + + [% IF Param('loginnetmask') < 32 %] + <tr> + <td align="right"> + <b> + Restrict this session<br> + to this IP address: + </b> + </td> + <td> + <input type="checkbox" name="Bugzilla_restrictlogin" + checked="checked"> + (Using this option improves security) + </td> + </tr> + [% END %] + + <tr> + <td><input type="submit" name="GoAheadAndLogIn" value="Login"></td> + + [%# For now, password change requests only apply to the DB + # verification method #%] + + [% IF has_db != 0 %] + <td>[ <a href="index.cgi?GoAheadAndLogIn=1#forgot">Forgot my Password</a> ]</td> + [% END %] + </tr> + </table> + +</form> +
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/login.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,134 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + # Toms Baugis toms@myrealbox.com + #%] + +[%# INTERFACE: + # target: string. URL to go to after login. + # has_db: true if DB is one of the available authentication mechanisms + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Log in to $terms.Bugzilla", + onload = "document.forms['login'].Bugzilla_login.focus()" +%] + +<p> + I need a legitimate login and password to continue. +</p> + +<form name="login" action="[% target FILTER html %]" method="POST"> + <table> + <tr> + <td align="right"> + <b>Login:</b> + </td> + <td> + <input size="35" name="Bugzilla_login"> + </td> + </tr> + <tr> + <td align="right"> + <b>Password:</b> + </td> + <td> + <input type="password" size="35" name="Bugzilla_password"> + </td> + </tr> + + [% IF Param('rememberlogin') == 'defaulton' || + Param('rememberlogin') == 'defaultoff' %] + <tr> + <td> </td> + <td> + <input type="checkbox" name="Bugzilla_remember" value="on" + [% "checked" IF Param('rememberlogin') == "defaulton" %]> + Remember my Login + </td> + </tr> + [% END %] + + [% IF Param('loginnetmask') < 32 %] + <tr> + <td align="right"> + <b> + Restrict this session<br> + to this IP address: + </b> + </td> + <td> + <input type="checkbox" name="Bugzilla_restrictlogin" + checked="checked"> + (Using this option improves security) + </td> + </tr> + [% END %] + </table> + + [% PROCESS "global/hidden-fields.html.tmpl" + exclude="^Bugzilla_(login|password|restrictlogin)$" %] + + <input type="submit" name="GoAheadAndLogIn" value="Log in"> + + <p> + (Note: you should make sure cookies are enabled for this site. + Otherwise, you will be required to log in frequently.) + </p> +</form> + +[%# Allow the user to create a new account, or request a token to change + # their password, assuming that our auth method allows that. + #%] + +[% IF caneditaccount %] + + [% IF Param("createemailregexp") %] + <hr> + + <p> + If you don't have a [% terms.Bugzilla %] account, you can + <a href="createaccount.cgi">create a new account</a>. + </p> + [% END %] + + [%# For now, password change requests only apply to the DB + # verification method #%] + + [% IF has_db != 0 %] + <hr> + + <a name="forgot"></a> + <form method="get" action="token.cgi"> + <input type="hidden" name="a" value="reqpw"> + If you have an account, but have forgotten your password, + enter your login name below and submit a request + to change your password.<br> + <input size="35" name="loginname"> + <input type="submit" value="Submit Request"> + </form> + + [% END %] + + <hr> +[% END %] + +[% PROCESS global/footer.html.tmpl %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/roscms-error.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/roscms-error.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/auth/roscms-error.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,50 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Bradley Baetz bbaetz@acm.org + #%] + +[%# INTERFACE: + # auth_err_tag: string. The tag for the error + # info: hash. Additional variables which may be used when printing details + # of the error. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% SWITCH auth_err_tag %] + [% CASE "cannot_retreive_attr" %] + The specified LDAP attribute [% info.attr FILTER html %] was not found. + + [% CASE "connect_failed" %] + An error occurred while trying to connect to the LDAP server. + [% IF info.errstr %] + The error from the server was: <tt>[% info.errstr FILTER html %]</tt>. + [% END %] + + [% CASE "no_userid" %] + [% terms.Bugzilla %] created a new account for you, but then could not find the + new userid. + + [% CASE "server_not_defined" %] + The LDAP server for authentication has not been defined. + + [% CASE %] + Unhandled authentication error: <tt>[% auth_err_tag FILTER html %]</tt> + +[% END %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/cancel-token.txt.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/cancel-token.txt.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/cancel-token.txt.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,98 @@ +[%# 1.0@bugzilla.org %] +[%# 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): John Vandenberg zeroj@null.net + # Tobias Burnus burnus@net-b.de + #%] + +[% PROCESS global/variables.none.tmpl %] + +From: bugzilla-admin-daemon +To: [% emailaddress %] +Subject: [% PROCESS subject %] + +A request was cancelled from [% remoteaddress %]. + +If you did not request this, it could be either an honest +mistake or someone attempting to break into your [% terms.Bugzilla %] account. + +Take a look at the information below and forward this email +to [% maintainer %] if you suspect foul play. + + Token: [% token %] + Token Type: [% tokentype %] + User: [% emailaddress %] + Issue Date: [% issuedate %] + Event Data: [% eventdata %] +Cancelled Because: +[% PROCESS cancelactionmessage %] + +[% BLOCK subject %] + [% IF tokentype == 'password' %] + Password change request cancelled + [% ELSIF tokentype == 'emailnew' OR tokentype == 'emailold' %] + Email change request cancelled + [% ELSE %] + [% tokentype %] token cancelled + [% END %] +[% END %] + +[% BLOCK cancelactionmessage %] + [% IF cancelaction == 'account_exists' %] + Account [% email %] already exists. + + [% ELSIF cancelaction == 'email_change_cancelled' %] + The request to change the email address for + the [% old_email %] account to [% new_email %] has + been cancelled. + + [% ELSIF cancelaction == 'email_change_cancelled_reinstated' %] + The request to change the email address for your account + to [% new_email %] has been cancelled. Your old account + settings have been reinstated. + + [% ELSIF cancelaction == 'emailold_change_cancelled' %] + The request to change the email address for your account + to [% new_email %] has been cancelled. + + [% ELSIF cancelaction == 'password_change_cancelled' %] + You have requested cancellation. + + [% ELSIF cancelaction == 'user_logged_in' %] + You have logged in. + + [% ELSIF cancelaction == 'wrong_token_for_changing_passwd' %] + You have tried to use the token to change the password. + + [% ELSIF cancelaction == 'wrong_token_for_cancelling_email_change' %] + You have tried to use the token to cancel the email address change. + + [% ELSIF cancelaction == 'wrong_token_for_confirming_email_change' %] + You have tried to use the token to confirm the email address change. + + [% ELSE %] + [%# Give sensible error if the cancel-token function is used incorrectly. + #%] + You are using [% terms.Bugzilla %]'s cancel-token function incorrectly. You + passed in the string '[% cancelaction %]'. The correct use is to pass + in a tag, and define that tag in the file cancel-token.txt.tmpl. + + If you are a [% terms.Bugzilla %] end-user seeing this message, please forward this + email to [% Param('maintainer') %]. + [% END %] +[% END %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/create.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/create.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/create.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,75 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE + # none + # + # Param("maintainer") is used to display the maintainer's email. + # Param("emailsuffix") is used to pre-fill the email field. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% title = BLOCK %] +Create a new [% terms.Bugzilla %] account +[% END %] +[% PROCESS global/header.html.tmpl %] + +<p> + To create a [% terms.Bugzilla %] account, all you need to do is + enter a legitimate e-mail address. The account will be created, and + its password will be mailed to you. <b>You will not be able to log + in until you receive the password.</b> If it doesn't arrive within a + reasonable amount of time, you can contact the maintainer of + this [% terms.Bugzilla %] installation + at <a href="mailto:[% Param("maintainer") %]">[% Param("maintainer") %]</a>. +</p> + +<p> + Optionally you may enter your real name as well. +</p> + +<form method="get" action="createaccount.cgi"> + <table> + <tr> + <td align="right"> + <b>E-mail address:</b> + </td> + <td> + <input size="35" name="login"> + [% Param('emailsuffix') FILTER html %] + </td> + </tr> + + <tr> + <td align="right"> + <b>Real name:</b> + </td> + <td> + <input size="35" name="realname"> + </td> + </tr> + </table> + <br> + <input type="submit" value="Create Account"> +</form> + +[% PROCESS global/footer.html.tmpl %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/created.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/created.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/created.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,42 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE: + # login: string. The user's Bugzilla login email address. + #%] + +[% PROCESS global/header.html.tmpl + title = "Account Created" +%] + +<p> + A new account, + <tt>[% login FILTER html %]</tt>, + has been created and a randomly-generated password has been e-mailed + to that address. +</p> + +<p> + When the e-mail arrives, + <a href="index.cgi?GoAheadAndLogIn=1">log in here</a>. +</p> + +[% PROCESS global/footer.html.tmpl %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-new.txt.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-new.txt.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-new.txt.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,42 @@ +[%# 1.0@bugzilla.org %] +[%# 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): John Vandenberg zeroj@null.net + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% expiration_ts = token_ts + (max_token_age * 86400) %] +From: bugzilla-admin-daemon +To: [% emailaddress %] +Subject: [% terms.Bugzilla %] Change Email Address Request + +[%+ terms.Bugzilla %] has received a request to change the email address +for the account [% oldemailaddress %] to your address. + +To confirm the change, visit the following link: + +[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cfmem + +If you are not the person who made this request, or you wish to cancel +this request, visit the following link: + +[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cxlem + +If you do nothing, the request will lapse after [%+ max_token_age %] days +(at precisely [%+ time2str("%H:%M on the %o of %B, %Y", expiration_ts) %]).
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-old.txt.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-old.txt.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/change-old.txt.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,47 @@ +[%# 1.0@bugzilla.org %] +[%# 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): John Vandenberg zeroj@null.net + #%] +[%# INTERFACE: + # emailaddress: string. The user's old Bugzilla login email address. + # newemailaddress: string. The user's new Bugzilla login email address. + # token: string. The token associated with this change. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% expiration_ts = token_ts + (max_token_age * 86400) %] +From: bugzilla-admin-daemon +To: [% emailaddress %] +Subject: [% terms.Bugzilla %] Change Email Address Request +Importance: High +X-MSMail-Priority: High +X-Priority: 1 + +[%+ terms.Bugzilla %] has received a request to change the email address +for your account to [%+ newemailaddress %]. + +If you are not the person who made this request, or you wish to cancel +this request, visit the following link: + +[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cxlem + +If you do nothing, and [%+ newemailaddress %] confirms this request, the +change will be made permanent after [%+ max_token_age %] days (at precisely +[%+ time2str("%H:%M on the %o of %B, %Y", expiration_ts) %]).
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/confirm.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/confirm.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/email/confirm.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,48 @@ +[%# 1.0@bugzilla.org %] +[%# 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): John Vandenberg zeroj@null.net + #%] + +[%# INTERFACE: + # token: string. The token to be used in this address change. + #%] + +[% title = "Confirm Change Email" %] +[% PROCESS global/header.html.tmpl %] + +<p> + To change your email address, please enter the old email address: +</p> + +<form method="post" action="token.cgi"> + <input type="hidden" name="t" value="[% token FILTER html %]"> + <input type="hidden" name="a" value="chgem"> + <table> + <tr> + <th align="right">Old Email Address:</th> + <td><input type="text" name="email" size="36"></td> + </tr> + <tr> + <th align="right"> </th> + <td><input type="submit" value="Submit"></td> + </tr> + </table> +</form> + +[% PROCESS global/footer.html.tmpl %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/exists.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/exists.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/exists.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,40 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE: + # login: string. The user's Bugzilla login email address. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Account Exists" +%] + +<form method="get" action="token.cgi"> + <input type="hidden" name="a" value="reqpw"> + <input type="hidden" name="loginname" value="[% login FILTER html %]"> + A [% terms.Bugzilla %] account for <tt>[% login FILTER html %]</tt> already exists. If you + are the account holder and have forgotten your password, + <input type="submit" value="submit a request to change it">. +</form> + +[% PROCESS global/footer.html.tmpl %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/forgotten-password.txt.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/forgotten-password.txt.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/forgotten-password.txt.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,41 @@ +[%# 1.0@bugzilla.org %] +[%# 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): John Vandenberg zeroj@null.net + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% expiration_ts = token_ts + (max_token_age * 86400) %] +From: bugzilla-admin-daemon +To: [% emailaddress %] +Subject: [% terms.Bugzilla %] Change Password Request + +You have (or someone impersonating you has) requested to change your +[%+ terms.Bugzilla %] password. To complete the change, visit the following link: + +[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cfmpw + +If you are not the person who made this request, or you wish to cancel +this request, visit the following link: + +[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cxlpw + +If you do nothing, the request will lapse after [%+ max_token_age +%] days (at +precisely [%+ time2str("%H:%M on the %o of %B, %Y", expiration_ts) -%]) or when you +log in successfully.
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/set-forgotten-password.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/set-forgotten-password.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/password/set-forgotten-password.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,56 @@ +[%# 1.0@bugzilla.org %] + [%# 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): Gervase Markham gerv@gerv.net + #%] + +[% title = "Change Password" %] +[% PROCESS global/header.html.tmpl %] + +<p> + To change your password, enter a new password twice: +</p> + +<form method="post" action="token.cgi"> + <input type="hidden" name="t" value="[% token FILTER html %]"> + <input type="hidden" name="a" value="chgpw"> + <table> + <tr> + <th align="right">New Password:</th> + <td> + <input type="password" name="password" size="16" maxlength="16"> + </td> + </tr> + + <tr> + <th align="right">New Password Again:</th> + <td> + <input type="password" name="matchpassword" size="16" maxlength="16"> + </td> + </tr> + + <tr> + <th align="right"> </th> + <td> + <input type="submit" value="Submit"> + </td> + </tr> + </table> +</form> + +[% PROCESS global/footer.html.tmpl %]
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/account.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/account.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/account.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,34 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE: + # realname: string. The user's real name, if any. + # login_change_date: string. The date the email change will be complete. (optional) + # new_login_name: string. The user's new Bugzilla login whilst not confirmed. (optional) + #%] + +You can change your account settings (password, email address etc.) +<a href="/roscms/?page=user">in myReactOS</a><br> +<br> +<br> +<br> +<br> +<br>
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/email.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/email.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/email.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,284 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + # Myk Melez myk@mozilla.org + # Shane H. W. Travis travis@sedsystems.ca + #%] + +[%# INTERFACE: + # watchedusers: string. + # Comma-separated list of email addresses this user watches. + # watchers: array. + # Array of users watching this user's account. + # excludeself: boolean. + # True if user is not receiving self-generated mail. + # <rolename>: Multiple hashes, one for each rolename (e.g. assignee; see + # below), keyed by reasonname (e.g. comments; again, see + # below). The value is a boolean - true if the user is + # receiving mail for that reason when in that role. + # Also references the 'supportwatchers' Param. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% useqacontact = Param('useqacontact') %] +[% usevotes = Param('usevotes') %] + +<p> + If you don't like getting a notification for "trivial" + changes to [% terms.bugs %], you can use the settings below to + filter some or all notifications. +</p> + +<script type="text/javascript"> +<!-- +function SetCheckboxes(setting) { + for (var count = 0; count < document.userprefsform.elements.length; count++) { + var theinput = document.userprefsform.elements[count]; + if (theinput.type == "checkbox" && !theinput.disabled) { + if (theinput.name.match("neg")) { + theinput.checked = false; + } + else { + theinput.checked = setting; + } + } + } +} + +document.write('<input type="button" value="Enable All Mail" onclick="SetCheckboxes(true); return false;">\n'); +document.write('<input type="button" value="Disable All Mail" onclick="SetCheckboxes(false); return false;">\n'); +// --> +</script> + +<hr> + +<table> + <tr> + <td colspan="2"> + <b>Global options:</b> + </td> + </tr> + + <tr> + <td width="150"></td> + <td> + [% prefname = "email-$constants.REL_ANY-$constants.EVT_FLAG_REQUESTED" %] + <input type="checkbox" name="[% prefname %]" id="[% prefname %]" + value="1" + [% " checked" IF + mail.${constants.REL_ANY}.${constants.EVT_FLAG_REQUESTED} %]> + <label for="[% prefname %]">Email me when someone asks me to set a flag</label> + <br> + </td> + </tr> + <tr> + <td width="150"></td> + <td> + [% prefname = "email-$constants.REL_ANY-$constants.EVT_REQUESTED_FLAG" %] + <input type="checkbox" name="[% prefname %]" id="[% prefname %]" + value="1" + [% " checked" IF + mail.${constants.REL_ANY}.${constants.EVT_REQUESTED_FLAG} %]> + <label for="[% prefname %]">Email me when someone sets a flag I asked for</label> + <br> + </td> + </tr> +</table> + +<hr> +<b>Field/recipient specific options:</b> +<br> +<br> + +[% events = [ + { id = constants.EVT_ADDED_REMOVED, + description = "I'm added to or removed from this capacity" }, + { id = constants.EVT_OPENED_CLOSED, + description = "The $terms.bug is resolved or reopened" }, + { id = constants.EVT_PROJ_MANAGEMENT, + description = "The priority, status, severity, or milestone changes" }, + { id = constants.EVT_COMMENT, + description = "New comments are added" }, + { id = constants.EVT_ATTACHMENT, + description = "New attachments are added" }, + { id = constants.EVT_ATTACHMENT_DATA, + description = "Some attachment data changes" }, + { id = constants.EVT_KEYWORD, + description = "The keywords field changes" }, + { id = constants.EVT_CC, + description = "The CC field changes" }, + { id = constants.EVT_OTHER, + description = "Any field not mentioned above changes" }, +] %] + +[% neg_events = [ + { id = constants.EVT_UNCONFIRMED, + description = "The $terms.bug is in the UNCONFIRMED state" }, + { id = constants.EVT_CHANGED_BY_ME, + description = "The change was made by me" }, +] %] + +[% relationships = [ + { id = constants.REL_ASSIGNEE, + description = "Assignee" }, + { id = constants.REL_QA, + description = "QA Contact" }, + { id = constants.REL_REPORTER, + description = "Reporter" }, + { id = constants.REL_CC, + description = "CCed" }, + { id = constants.REL_VOTER, + description = "Voter" }, +] %] + +<table class="bz_emailprefs" border="1"> + <tr> + <td colspan="[% (useqacontact AND usevotes) ? '5' : + ((useqacontact OR usevotes) ? '4' : '3') %]" + align="center" width="50%"> + <b>When my relationship to this [% terms.bug %] is:</b> + </td> + <td rowspan="2" width="40%"> + <b>I want to receive mail when:</b> + </td> + </tr> + + <tr> + [% FOREACH relationship = relationships %] + [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR + (relationship.id == constants.REL_VOTER AND NOT usevotes) %] + <th align="center" width="9%"> + [% relationship.description FILTER html %] + </th> + [% END %] + </tr> + + [% FOREACH event = events %] + [% count = loop.count() %] + <tr class="bz_row_[% count % 2 == 1 ? "odd" : "even" %]"> + [% FOREACH relationship = relationships %] + [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR + (relationship.id == constants.REL_VOTER AND NOT usevotes) %] + <td align="center"> + <input type="checkbox" + name="email-[% relationship.id %]-[% event.id %]" + value="1" + [%# The combinations don't always make sense; disable a couple %] + [% IF event.id == constants.EVT_ADDED_REMOVED AND + (relationship.id == constants.REL_REPORTER OR + relationship.id == constants.REL_VOTER) %] + disabled + [% ELSIF mail.${relationship.id}.${event.id} %] + checked + [% END %]> + </td> + [% END %] + <td> + [% event.description FILTER html %] + </td> + </tr> + [% END %] + + <tr> + <td colspan="[% (useqacontact AND usevotes) ? '5' : + ((useqacontact OR usevotes) ? '4' : '3') %]" + align="center" width="50%"> + + </td> + <td width="40%"> + <b>but not when (overrides above):</b> + </td> + </tr> + + [% FOREACH event = neg_events %] + [% count = loop.count() %] + <tr class="bz_row_[% count % 2 == 1 ? "odd" : "even" %]"> + [% FOREACH relationship = relationships %] + [% NEXT IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR + (relationship.id == constants.REL_VOTER AND NOT usevotes) %] + <td align="center"> + <input type="checkbox" + name="neg-email-[% relationship.id %]-[% event.id %]" + value="1" + [% " checked" IF NOT mail.${relationship.id}.${event.id} %]> + </td> + [% END %] + <td> + [% event.description FILTER html %] + </td> + </tr> + [% END %] + +</table> + +[%# Add hidden form fields for fields not used %] +[% FOREACH event = events %] + [% FOREACH relationship = relationships %] + [% IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR + (relationship.id == constants.REL_VOTER AND NOT usevotes) %] + <input type="hidden" + name="email-[% relationship.id %]-[% event.id %]" + value="[% mail.${relationship.id}.${event.id} ? "1" : "0" %]"> + [% END %] + [% END %] +[% END %] + +[% FOREACH event = neg_events %] + [% FOREACH relationship = relationships %] + [% IF (relationship.id == constants.REL_QA AND NOT useqacontact) OR + (relationship.id == constants.REL_VOTER AND NOT usevotes) %] + <input type="hidden" + name="neg-email-[% relationship.id %]-[% event.id %]" + value="[% mail.${relationship.id}.${event.id} ? "0" : "1" %]"> + [% END %] + [% END %] +[% END %] + +[% IF Param('supportwatchers') %] +<hr> +<b>User Watching</b> + +<p> +If you watch a user, it is as if you are standing in their shoes for the +purposes of getting email. Email is sent or not according to <u>your</u> +preferences for <u>their</u> relationship to the [% terms.bug %] +(e.g. Assignee). You are watching anyone on the following comma-separated list: +</p> + +<p>Users to watch: + <input size="60" name="watchedusers" + value="[% watchedusers FILTER html %]"> +</p> + +<p>Users watching you:<br> + [% IF watchers.size %] + [% FOREACH watcher = watchers %] + [% watcher FILTER html %] <br> + [% END %] + [% ELSE %] + <i>None</i> + [% END %] +</p> + +[% END %] + +<hr> + +<br>
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/footer.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/footer.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/footer.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,78 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE: + # mybugslink: boolean. True if the user wishes the My Bugs link to appear. + # queries: array of hashes. May be empty. Each hash has two members: + # name: string. The name of the search. + # footer: boolean. True if the search appears in the footer. + #%] + +[% PROCESS global/variables.none.tmpl %] + +<table> + <tr> + <th align="right">The 'My [% terms.bugs %]' link:</th> + <td> + <select name="mybugslink"> + <option value="1">should appear on the footer of every page</option> + <option value="0" + [% " selected" IF NOT mybugslink %]>should not be displayed + </option> + </select> + </td> + </tr> + + <input type="hidden" name="numqueries" value="[% queries.size %]"> + [% IF queries.size %] + [% FOREACH query = queries %] + <tr> + <th align="right">Your search named '[% query.name FILTER html %]':</th> + <td> + <select name="query-[% loop.index %]"> + <option value="0">should only appear in the search page</option> + <option value="1" + [% " selected" IF query.footer %]> + should appear on the footer of every page + </option> + </select> + </td> + </tr> + + <input type="hidden" name="name-[% loop.index %]" + value="[% query.name FILTER html %]"> + [% END %] + + [% ELSE %] + <tr> + <td colspan="4"> + <br> + If you create remembered queries using the + <a href="query.cgi">search page</a>, + you can then come to this page and choose to have some of them + appear in the footer of each [% terms.Bugzilla %] page. + <br> + <br> + </td> + </tr> + [% END %] + +</table>
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/permissions.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/permissions.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/permissions.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,75 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE: + # has_bits: array of hashes. May be empty. + # name => Names of the permissions the user has. + # desc => Descriptions of the permissions the user has. + # set_bits: array of hashes. May be empty. + # name => Names of the permissions the user can set for + # other people. + # desc => Descriptions of the permissions the user can set for + # other people. + #%] + +[% PROCESS global/variables.none.tmpl %] + +<table align="center"> + <tr> + <td> + [% IF has_bits.size %] + You have the following permission [% terms.bits %] set on your account: + <p> + <br> + <table align="center"> + [% FOREACH bit_description = has_bits %] + <tr> + <td>[% bit_description.name %]</td> + <td>[% bit_description.desc %]</td> + </tr> + [% END %] + </table> + [% ELSE %] + There are no permission [% terms.bits %] set on your account. + [% END %] + + [% IF user.groups.editusers %] + <br> + You have editusers privileges. You can turn on and off + all permissions for all users. + [% ELSIF set_bits.size %] + <br> + And you can turn on or off the following [% terms.bits %] for + <a href="editusers.cgi">other users</a>: + <p> + <table align="center"> + [% FOREACH bit_description = set_bits %] + <tr> + <td>[% bit_description.name %]</td> + <td>[% bit_description.desc %]</td> + </tr> + [% END %] + </table> + </p> + [% END %] + </td> + </tr> +</table>
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/prefs.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/prefs.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/prefs.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,128 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +[%# INTERFACE: + # tabs: List of hashes. May not be empty. Each hash has three members: + # name: string. Name of the tab (used internally.) + # description: string. Description of the tab (used in tab title.) + # saveable: boolean. True if tab has a form which can be submitted. + # True if user is not receiving self-generated mail. + # Note: For each tab name, a template "prefs/${tab.name}.tmpl" must exist, + # and its interface must be fulfilled. + # current_tab: A direct reference to one of the hashes in the tabs list. + # This tab will be displayed. + # changes_saved: boolean/string. True if the CGI processed form data before + # displaying anything, and can contain an optional custom + # message if required (which Perl still evaluates as True). + #%] + +[% filtered_login = user.name FILTER html %] +[% PROCESS global/header.html.tmpl + title = "User Preferences" + h2 = filtered_login + style = "td.selected_tab { + border-width: 2px 2px 0px; + border-style: solid; + border-color: black; + } + td.unselected_tab, td.spacer { + border-width: 0px 0px 2px 0px; + border-style: solid; + border-color: black; + }" + %] + +[% tabs = [ { name => "account", description => "Account Preferences", + saveable => "0" }, + { name => "settings", description => "General Preferences", + saveable => "1" }, + { name => "email", description => "Email Preferences", + saveable => "1" }, + { name => "saved-searches", description => "Saved searches", + saveable => "1" }, + { name => "permissions", description => "Permissions", + saveable => "0" } ] %] + +<center> + <table cellspacing="0" cellpadding="10" border="0" width="100%"> + <tr> + <td class="spacer"> </td> + + [% FOREACH tab = tabs %] + [% IF tab.name == current_tab_name %] + [% current_tab = tab %] + <td align="center" bgcolor="lightblue" class="selected_tab"> + [% tab.description %] + </td> + [% ELSE %] + <td align="center" bgcolor="#BBBBEE" class="unselected_tab"> + <a href="userprefs.cgi?tab=[% tab.name %]">[% tab.description %]</a> + </td> + [% END %] + [% END %] + + <td class="spacer"> </td> + </tr> + </table> +</center> + +[% IF changes_saved %] + <p> + <font color="red"> + The changes to your + [% current_tab.description FILTER lower %] have been saved. + </font> + </p> + [% IF email_changes_saved %] + <p> + An email has been sent to both old and new email + addresses to confirm the change of email address. + </p> + [% END %] +[% END %] + +<h3>[% current_tab.description %]</h3> + +<form name="userprefsform" method="post" action="userprefs.cgi"> + <input type="hidden" name="tab" value="[% current_tab.name %]"> + + [% PROCESS "account/prefs/${current_tab.name}.html.tmpl" + IF current_tab.name.defined %] + + [% IF current_tab.saveable %] + <input type="hidden" name="dosave" value="1"> + + <table> + <tr> + <td width="150"></td> + <td> + <input type="submit" value="Submit Changes"> + </td> + </tr> + </table> + [% END %] + +</form> + +[% PROCESS global/footer.html.tmpl %] + + +
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/saved-searches.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/saved-searches.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/saved-searches.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,89 @@ +[%# 1.0@bugzilla.org %] +[%# 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): Gervase Markham gerv@gerv.net + #%] + +<p>Your saved searches are as follows:</p> + +<blockquote> + <table border="1" cellpadding="3"> + <tr> + <th> + Search + </th> + <th> + Run + </th> + <th> + Edit + </th> + <th> + Forget + </th> + <th> + Show in + Footer + </th> + </tr> + <tr> + <td>My Bugs</td> + <td> + [% filtered_username = user.login FILTER url_quote %] + <a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">Run</a> + </td> + <td> + + </td> + <td> + + </td> + <td align="center"> + <input type="checkbox" + name="showmybugslink" + value="1" + [% " checked" IF user.showmybugslink %]> + </td> + </tr> + [% FOREACH q = queries %] + <tr> + <td>[% q.name FILTER html %]</td> + <td> + <a href="buglist.cgi?[% q.query FILTER html %]">Run</a> + </td> + <td> + <a href="query.cgi?[% q.query FILTER html %]&known_name=[% q.name FILTER url_quote %]">Edit</a> + </td> + <td> + [% IF q.usedinwhine %] + Remove from <a href="editwhines.cgi">whining</a> first + [% ELSE %] + <a href="buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd= + [% q.name FILTER url_quote %]">Forget</a> + [% END %] + </td> + <td align="center"> + <input type="checkbox" + name="linkinfooter_[% q.name FILTER html %]" + value="1" + [% " checked" IF q.linkinfooter %]> + </td> + </tr> + [% END %] + </table> +</blockquote>
Added: trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/settings.html.tmpl URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/bugzilla/tem... ============================================================================== --- trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/settings.html.tmpl (added) +++ trunk/web/reactos.org/htdocs/bugzilla/template/en/default/account/prefs/settings.html.tmpl Thu Jul 26 22:12:37 2007 @@ -1,0 +1,62 @@ +[%# 1.0@bugzilla.org %] +[%# 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. + # + # Contributor(s): Shane H. W. Travis travis@sedsystems.ca + # + #%] + +[%# INTERFACE: + # setting_names: an array of strings + # settings: a hash of hashes, keyed by setting_name. + # Each hash contains: + # is_enabled - boolean + # default_value - string (global default for this setting) + # value - string (user-defined preference) + # is_default - boolean (true if user has no preference) + #%] + +[% PROCESS "global/setting-descs.none.tmpl" %] + +[% IF settings.size %] + <table border="0" cellpadding="8"> + [% FOREACH name = setting_names %] + [% IF settings.${name}.is_enabled %] + [% default_name = name _ '-isdefault' %] + [% default_val = settings.${name}.default_value %] + <tr> + <td align="right"> + [% setting_descs.$name OR name FILTER html %] + </td> + <td> + <select name="[% name %]" id="[% name %]"> + <option value="[% default_name %]" + [% ' selected="selected"' IF settings.${name}.is_default %]> + Site Default ([% setting_descs.${default_val} OR default_val FILTER html %]) + </option> + [% FOREACH x = settings.${name}.legal_values %] + <option value="[% x FILTER html %]" + [% ' selected="selected"' + IF x == settings.${name}.value + AND NOT settings.${name}.is_default %]> + [% setting_descs.${x} OR x FILTER html %] + </option> + [% END %] + </select> + </td> + </tr> + [% END %] + [% END %] + + </table> +[% END %] +<br>