summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-06-03 09:31:50 +0200
committerByron Jones <glob@mozilla.com>2015-06-03 09:31:50 +0200
commit135afb27802aae8e649e36f62b8037d939d2388a (patch)
treec7070b3eb436688a7bcafd51d90492c9ae3cc0b1 /extensions/BugModal/template
parentdb5bf69868f0c3581f5f016cdcbaf3d6359612b8 (diff)
downloadbugzilla-135afb27802aae8e649e36f62b8037d939d2388a.tar.gz
bugzilla-135afb27802aae8e649e36f62b8037d939d2388a.tar.xz
Bug 1146781: implement the "ignore bug mail" checkbox
Diffstat (limited to 'extensions/BugModal/template')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/new_comment.html.tmpl22
1 files changed, 19 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/new_comment.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/new_comment.html.tmpl
index 17bf38200..282b750d8 100644
--- a/extensions/BugModal/template/en/default/bug_modal/new_comment.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/new_comment.html.tmpl
@@ -52,6 +52,8 @@
<div id="after-comment-commit-button">
[% Hook.process("after_comment_commit_button", 'bug/edit.html.tmpl') %]
+ [%# this checkboxes are in tables to match the alignment of the
+ added-by-extensions checkboxes (needinfo, restrict-comments) %]
[% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
[%
IF user.settings.state_addselfcc.value == 'always';
@@ -66,13 +68,11 @@
check_add_self = 0;
END;
%]
- [%# this is in a table to match the alignment of the added-by-extensions
- checkboxes (needinfo, restrict-comments) %]
<table>
<tr>
<td>
<input type="checkbox" name="addselfcc" id="add-self-cc"
- [%~ " checked" IF check_add_self %]>
+ [%= "checked" IF check_add_self %]>
</td>
<td>
<label for="add-self-cc">Add me to CC list (follow this [% terms.bug %])</label>
@@ -80,5 +80,21 @@
</tr>
</table>
[% END %]
+
+ [% IF user.is_involved_in_bug(bug) %]
+ <table class="edit-show" style="display:none">
+ <tr>
+ <td>
+ <input type="checkbox" name="bug_ignored" id="bug-ignored"
+ [%= "checked" IF user.is_bug_ignored(bug.id) %]>
+ </td>
+ <td>
+ <label for="bug-ignored" title="You will still receive emails for flag requests directed at you">
+ Never email me about this [% terms.bug %]
+ </label>
+ </td>
+ </tr>
+ </table>
+ [% END %]
</div>
</div>