diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-11 09:11:32 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-04-11 09:11:32 +0200 |
commit | 861dd56bc901477eec23e060a143e24cc8b79384 (patch) | |
tree | 2c45b26f357d47f324ffa8320363a7d38c2927a8 /template/en/default/account | |
parent | b7dbc39db88b25921af9a0b75c4bf43b8c2538f5 (diff) | |
download | bugzilla-861dd56bc901477eec23e060a143e24cc8b79384.tar.gz bugzilla-861dd56bc901477eec23e060a143e24cc8b79384.tar.xz |
Bug 859480: Ability to ignore specific bugs (not get email from them, even as the reporter)
Diffstat (limited to 'template/en/default/account')
-rw-r--r-- | template/en/default/account/prefs/email.html.tmpl | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl index 32d52fd8e..ffb153785 100644 --- a/template/en/default/account/prefs/email.html.tmpl +++ b/template/en/default/account/prefs/email.html.tmpl @@ -46,7 +46,10 @@ 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.type == "checkbox" + && !theinput.disabled + && !theinput.name.match("remove_ignored_bug")) + { if (theinput.name.match("neg")) { theinput.checked = !setting; } @@ -286,6 +289,40 @@ You are currently not watching any users. [% END %] </p> -<hr> +<b>Ignore [% terms.Bugs %]</b> -<br> +<p> + You can specify a list of [% terms.bugs %] from which you never want to get + any email notification of any kind by adding their ID(s) as a comma-separated + list. Removing [% terms.abug %] by selecting it from the current ignored list + will re-enable email notifications for the [% terms.bug %]. +</p> +[% IF user.bugs_ignored.size %] + <p> + You are currently ignoring: + <table> + [% FOREACH bug = user.bugs_ignored %] + <tr> + <td> + <input type="checkbox" name="remove_ignored_bug_[% bug.id FILTER html %]" value="1"> + </td> + <td><a href="[% urlbase FILTER html %]show_bug.cgi?id=[% bug.id FILTER uri %]"> + [% bug.id FILTER html %]</a> + </td> + <td>[% bug.status FILTER html %]</td> + <td> + [% IF user.can_see_bug(bug.id) %] + - [% bug.summary FILTER html %] + [% ELSE %] + (private) + [% END %] + </td> + </tr> + [% END %] + </table> + </p> +[% END %] + +<p>Add [% terms.bugs %]:<br> + <input type="text" id="add_ignored_bugs" + name="add_ignored_bugs" size="60"></p> |