diff options
Diffstat (limited to 'template/en/default/account/prefs')
-rw-r--r-- | template/en/default/account/prefs/account.html.tmpl | 99 | ||||
-rw-r--r-- | template/en/default/account/prefs/email.html.tmpl | 289 | ||||
-rw-r--r-- | template/en/default/account/prefs/permissions.html.tmpl | 93 | ||||
-rw-r--r-- | template/en/default/account/prefs/prefs.html.tmpl | 114 | ||||
-rw-r--r-- | template/en/default/account/prefs/saved-searches.html.tmpl | 209 | ||||
-rw-r--r-- | template/en/default/account/prefs/settings.html.tmpl | 77 |
6 files changed, 0 insertions, 881 deletions
diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl deleted file mode 100644 index 0457ff8..0000000 --- a/template/en/default/account/prefs/account.html.tmpl +++ /dev/null @@ -1,99 +0,0 @@ -[%# 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) - #%] - -<table> - <tr> - <td colspan="3"> - Please enter your existing password to confirm account changes. - </td> - </tr> - <tr> - <th align="right">Password:</th> - <td> - <input type="hidden" name="old_login" value="[% user.login FILTER html %]"> - <input type="password" name="old_password"> - </td> - </tr> - <tr> - <td colspan="2"><hr></td> - </tr> - [% IF user.authorizer.can_change_password %] - <tr> - <th align="right">New password:</th> - <td> - <input type="password" name="new_password1"> - </td> - </tr> - - <tr> - <th align="right">Confirm new password:</th> - <td> - <input type="password" name="new_password2"> - </td> - </tr> - [% END %] - - <tr> - <th align="right">Your real name (optional, but encouraged):</th> - <td> - <input size="35" name="realname" value="[% realname FILTER html %]"> - </td> - </tr> - - [% IF user.authorizer.can_change_email && Param('allowemailchange') %] - [% IF login_change_date %] - [% IF new_login_name %] - <tr> - <th align="right">Pending email address:</th> - <td>[% new_login_name FILTER html %]</td> - </tr> - <tr> - <th align="right">Change request expires:</th> - <td>[% login_change_date FILTER time %]</td> - </tr> - [% ELSE %] - <tr> - <th align="right">Confirmed email address:</th> - <td>[% user.login FILTER html %]</td> - </tr> - <tr> - <th align="right">Completion date:</th> - <td>[% login_change_date FILTER time %]</td> - </tr> - [% END %] - [% ELSE %] - <tr> - <th align="right">New email address:</th> - <td> - <input size="35" name="new_login_name"> - </td> - </tr> - [% END %] - [% END %] - - [% Hook.process('field') %] - -</table> diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl deleted file mode 100644 index 96a111b..0000000 --- a/template/en/default/account/prefs/email.html.tmpl +++ /dev/null @@ -1,289 +0,0 @@ -[%# 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. - #%] - -[% PROCESS global/variables.none.tmpl %] - -<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 user.mail_settings.${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 user.mail_settings.${constants.REL_ANY}.${constants.EVT_REQUESTED_FLAG} %]> - <label for="[% prefname %]">Email me when someone sets a flag I asked for</label> - <br> - </td> - </tr> -[% IF user.is_global_watcher %] - <tr> - <td width="150"></td> - <td> - You are watching all [% terms.bugs %]. To be removed from this role, - contact - <a href="mailto:[% Param("maintainer") %]">[% Param("maintainer") %]</a>. - </td> - </tr> -[% END %] -</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_BUG_CREATED, - description = "A new $terms.bug is created" }, - { 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_DEPEND_BLOCK, - description = "The dependency tree 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_REPORTER, - description = "Reporter" }, - { id = constants.REL_CC, - description = "CCed" }, -] %] - -[% IF Param('useqacontact') %] - [% relationships.push({ id = constants.REL_QA, - description = "QA Contact" }) %] -[% END %] - - -[%# This is up here so that the "relationships" hook can modify it. %] -[% no_added_removed = [constants.REL_REPORTER] %] - -[% Hook.process('relationships') %] - -[% num_columns = relationships.size %] - -<table class="bz_emailprefs" border="1"> - <tr> - <td colspan="[% num_columns FILTER html %]" 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 %] - <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 %] - <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 - no_added_removed.contains(relationship.id) - %] - disabled - [% ELSIF user.mail_settings.${relationship.id}.${event.id} %] - checked - [% END %]> - </td> - [% END %] - <td> - [% event.description FILTER html %] - </td> - </tr> - [% END %] - - <tr> - <td colspan="[% num_columns FILTER html %]" - 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 %] - <td align="center"> - <input type="checkbox" - name="neg-email-[% relationship.id %]-[% event.id %]" - value="1" - [% " checked" IF NOT user.mail_settings.${relationship.id}.${event.id} %]> - </td> - [% END %] - <td> - [% event.description FILTER html %] - </td> - </tr> - [% END %] - -</table> - -<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). -</p> - -<p> -[% IF watchedusers.size %] -You are watching everyone in the following list: - </p> - <p> - <select id="watched_by_you" name="watched_by_you" multiple="multiple" size="5"> - [% FOREACH w = watchedusers %] - <option value="[% w FILTER html %]">[% w FILTER html %]</option> - [% END %] - </select> <br /> - <input type="checkbox" id="remove_watched_users" name="remove_watched_users"> - <label for="remove_watched_users">Remove selected users from my watch list</label> -[% ELSE %] -You are currently not watching any users. -[% END %] -</p> - -<p id="new_watched_by_you">Add users to my watch list (comma separated list): - [% INCLUDE global/userselect.html.tmpl - id => "new_watchedusers" - name => "new_watchedusers" - value => "" - size => 60 - multiple => 5 - %] -</p> - -<p id="watching_you">Users watching you:<br> - [% IF watchers.size %] - [% FOREACH watcher = watchers %] - [% watcher FILTER html %] <br> - [% END %] - [% ELSE %] - <i>No one</i> - [% END %] -</p> - -<hr> - -<br> diff --git a/template/en/default/account/prefs/permissions.html.tmpl b/template/en/default/account/prefs/permissions.html.tmpl deleted file mode 100644 index 5e8dc9c..0000000 --- a/template/en/default/account/prefs/permissions.html.tmpl +++ /dev/null @@ -1,93 +0,0 @@ -[%# 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 bits set on your account: - <table align="center"> - [% FOREACH bit_description = has_bits %] - <tr> - <td>[% bit_description.name FILTER html %]</td> - <td>[% bit_description.desc FILTER html_light %]</td> - </tr> - [% END %] - </table> - - [% FOREACH privs = ["editcomponents", "canconfirm", "editbugs"] %] - [% SET products = ${"local_$privs"} %] - [% IF products && products.size %] - <br> - <p> - You also have local '[% privs FILTER html %]' privileges - for the following products: - </p> - <p> - [% FOREACH product = products %] - [% product.name FILTER html %]<br> - [% END %] - </p> - [% END %] - [% END %] - - [% ELSE %] - There are no permission bits set on your account. - [% END %] - - [% IF user.in_group('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 bits for - <a href="editusers.cgi">other users</a>: - <table align="center"> - [% FOREACH bit_description = set_bits %] - <tr> - <td>[% bit_description.name FILTER html %]</td> - <td>[% bit_description.desc FILTER html_light %]</td> - </tr> - [% END %] - </table> - [% END %] - - [% IF user.in_group('bz_sudoers') %] - <br> - You are a member of the <b>bz_sudoers</b> group, so you can - <a href="relogin.cgi?action=prepare-sudo">impersonate someone else</a>. - [% END %] - </td> - </tr> -</table> diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl deleted file mode 100644 index 2e7d98c..0000000 --- a/template/en/default/account/prefs/prefs.html.tmpl +++ /dev/null @@ -1,114 +0,0 @@ -[%# 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> - # Frédéric Buclin <LpSolit@gmail.com> - #%] - -[%# 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). - # dont_show_button: boolean. Prevent the display of the "Submit Changes" button. - #%] - -[% filtered_login = user.login FILTER html %] -[% PROCESS global/header.html.tmpl - title = "User Preferences" - subheader = filtered_login - style_urls = ['skins/standard/admin.css'] - javascript_urls = ['js/util.js'] - doc_section = "userpreferences.html" - %] - -[% tabs = [{ name => "settings", label => "General Preferences", - link => "userprefs.cgi?tab=settings", saveable => "1" }, - { name => "email", label => "Email Preferences", - link => "userprefs.cgi?tab=email", saveable => "1" }, - { name => "saved-searches", label => "Saved Searches", - link => "userprefs.cgi?tab=saved-searches", saveable => "1" }, - { name => "account", label => "Account Information", - link => "userprefs.cgi?tab=account", saveable => "1" }, - { name => "permissions", label => "Permissions", - link => "userprefs.cgi?tab=permissions", saveable => "0" } ] %] - -[% Hook.process('tabs') %] - -[% FOREACH tab IN tabs %] - [% IF tab.name == current_tab_name %] - [% current_tab = tab %] - [% LAST %] - [% END %] -[% END %] - -[% WRAPPER global/tabs.html.tmpl - tabs = tabs - current_tab = current_tab -%] - -[% IF changes_saved %] - <div id="message"> - The changes to your [% current_tab.label FILTER lower %] have been saved. - - [% 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 %] - </div> -[% END %] - -<h3>[% current_tab.label %]</h3> - -[% IF current_tab.saveable %] - <form name="userprefsform" method="post" action="userprefs.cgi"> - <input type="hidden" name="tab" value="[% current_tab.name %]"> - <input type="hidden" name="token" value="[% token FILTER html %]"> -[% END %] - -[% PROCESS "account/prefs/${current_tab.name}.html.tmpl" - IF current_tab.name.defined %] - -[% IF current_tab.saveable %] - <input type="hidden" name="dosave" value="1"> - - [% UNLESS dont_show_button %] - <table> - <tr> - <td width="150"> </td> - <td> - <input type="submit" id="update" value="Submit Changes"> - </td> - </tr> - </table> - [% END %] - </form> -[% END %] - -[% END %] - -[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl deleted file mode 100644 index 6d87ade..0000000 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ /dev/null @@ -1,209 +0,0 @@ -[%# 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: - # queryshare_groups: list of groups the user may share queries with - # (id, name). - # bless_group_ids: list of group ids the user may bless. - #%] - -[% IF user.can_bless %] - <script type="text/javascript"><!-- - function update_checkbox(group) { - var bless_groups = [[% bless_group_ids.join(",") FILTER js %]]; - var checkbox = document.getElementById(group.name.replace(/share_(\d+)/, "force_$1")); - - if (bz_isValueInArray(bless_groups, group.value)) { - YAHOO.util.Dom.removeClass(checkbox.parentNode, "bz_default_hidden"); - } else { - YAHOO.util.Dom.addClass(checkbox.parentNode, "bz_default_hidden"); - checkbox.checked = false; - } - } //--> - </script> -[% END %] - -<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> - [% may_share = user.in_group(Param('querysharegroup')) && queryshare_groups.size %] - [% IF may_share %] - <th> - Share With a Group - </th> - [% END %] - </tr> - <tr> - <td>My [% terms.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> - [% IF may_share %] - <td> - — - </td> - [% END %] - </tr> - [% FOREACH q = user.queries %] - <tr> - <td>[% q.name FILTER html %]</td> - <td> - <a href="buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=[% q.name FILTER url_quote %] - [% IF q.shared_with_group.id %]&sharer_id=[% user.id FILTER url_quote %][% END %]">Run</a> - </td> - <td> - <a href="query.cgi?[% q.edit_link FILTER html %]&known_name= - [% q.name FILTER url_quote %]">Edit</a> - </td> - <td> - [% IF q.used_in_whine %] - Remove from <a href="editwhines.cgi">whining</a> first - [% ELSE %] - <a href="buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd= - [% q.name FILTER url_quote %]&token= - [% issue_hash_token([q.id, q.name]) FILTER url_quote %]">Forget</a> - [% END %] - </td> - <td align="center"> - <input type="checkbox" - name="link_in_footer_[% q.id FILTER html %]" - value="1" - alt="[% q.name FILTER html %]" - [% " checked" IF q.link_in_footer %]> - </td> - [% IF may_share %] - <td> - <select name="share_[% q.id FILTER html %]" - [% IF user.can_bless %] onchange="update_checkbox(this);"[% END %]> - <option value="">Don't share</option> - [% FOREACH group = queryshare_groups %] - <option value="[% group.id %]" - [% ' selected="selected"' - IF q.shared_with_group.id == group.id %] - >[% group.name FILTER html %]</option> - [% END %] - </select> - [% IF user.can_bless %] - <span [% IF !bless_group_ids.grep("^$q.shared_with_group.id\$").0 - %]class="bz_default_hidden"[% END %]> - <input type="checkbox" id="force_[% q.id FILTER html %]" - name="force_[% q.id FILTER html %]" value="1"> - <label for="force_[% q.id FILTER html %]">Add to footer</label> - </span> - [% END %] - [% IF q.shared_with_users %] - (shared with [% q.shared_with_users FILTER html %] - [%+ q.shared_with_users > 1 ? "users" : "user" %]) - [% END %] - </td> - [% END %] - </tr> - [% END %] - </table> -[% IF user.can_bless %] - <p>Note that for every search that has the "Add to footer" selected, a - link to the shared search is added to the footer of every user that is - a direct member of the group at the time you click Submit Changes.</p> -[% END %] -</blockquote> - -[% IF user.queries_available.size %] - <p>You may use these searches saved and shared by others:</p> - - <table border="1" cellpadding="3"> - <tr> - <th> - Search - </th> - <th> - Shared By - </th> - <th> - Shared To - </th> - <th> - Run - </th> - <th> - Edit - </th> - <th> - Show in - Footer - </th> - </tr> - [% FOREACH q = user.queries_available %] - <tr> - <td>[% q.name FILTER html %]</td> - <td>[% q.user.identity FILTER html %]</td> - <td>[% q.shared_with_group.name FILTER html %]</td> - <td> - <a href="buglist.cgi?cmdtype=dorem&remaction=run&namedcmd= - [% q.name FILTER url_quote %]&sharer_id= - [% q.user.id FILTER url_quote %]">Run</a> - </td> - <td> - <a href="query.cgi?[% q.edit_link FILTER html %]&known_name= - [% q.name FILTER url_quote %]">Edit</a> - </td> - <td align="center"> - <input type="checkbox" - name="link_in_footer_[% q.id FILTER html %]" - value="1" - alt="[% q.name FILTER html %]" - [% " checked" IF q.link_in_footer %]> - </td> - </tr> - [% END %] - </table> -[% ELSE %] - <p>No searches are shared with you by other users.</p> -[% END %] diff --git a/template/en/default/account/prefs/settings.html.tmpl b/template/en/default/account/prefs/settings.html.tmpl deleted file mode 100644 index f8b6ba4..0000000 --- a/template/en/default/account/prefs/settings.html.tmpl +++ /dev/null @@ -1,77 +0,0 @@ -[%# 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> - # Frédéric Buclin <LpSolit@gmail.com> - # - #%] - -[%# 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) - # has_settings_enabled : boolean; is true if there is at least one user pref - # enabled by the maintainer. - #%] - -[% PROCESS "global/setting-descs.none.tmpl" %] - -[% IF settings.size %] - [% UNLESS has_settings_enabled %] - <p class="criticalmessages"> - All user preferences have been disabled by the - <a href="mailto:[% Param("maintainer") %]">maintainer</a> - of this installation, and so you cannot customize any. - </p> - [% END %] - - <table border="0" cellpadding="8"> - [% FOREACH name = setting_names %] - [% default_name = name _ '-isdefault' %] - [% default_val = settings.${name}.default_value %] - <tr> - <td align="right"> - [% setting_descs.$name OR name FILTER html %] - </td> - <td> - [% IF settings.${name}.is_enabled %] - <select name="[% name FILTER html %]" id="[% name FILTER html %]"> - <option value="[% default_name FILTER html %]" - [% ' 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> - [% ELSE %] - <select name="[% name FILTER html %]" id="[% name FILTER html %]" disabled="disabled"> - <option value="[% default_name FILTER html %]"> - Site Default ([% setting_descs.${default_val} OR default_val FILTER html %]) - </option> - </select> - [% END %] - </td> - </tr> - [% END %] - </table> -[% END %] -<br> |