summaryrefslogtreecommitdiffstats
path: root/extensions/RestrictComments
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/RestrictComments
parentdb5bf69868f0c3581f5f016cdcbaf3d6359612b8 (diff)
downloadbugzilla-135afb27802aae8e649e36f62b8037d939d2388a.tar.gz
bugzilla-135afb27802aae8e649e36f62b8037d939d2388a.tar.xz
Bug 1146781: implement the "ignore bug mail" checkbox
Diffstat (limited to 'extensions/RestrictComments')
-rw-r--r--extensions/RestrictComments/template/en/default/hook/bug/edit-after_comment_commit_button.html.tmpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/extensions/RestrictComments/template/en/default/hook/bug/edit-after_comment_commit_button.html.tmpl b/extensions/RestrictComments/template/en/default/hook/bug/edit-after_comment_commit_button.html.tmpl
index c5250c8c2..ab2d79f62 100644
--- a/extensions/RestrictComments/template/en/default/hook/bug/edit-after_comment_commit_button.html.tmpl
+++ b/extensions/RestrictComments/template/en/default/hook/bug/edit-after_comment_commit_button.html.tmpl
@@ -10,7 +10,7 @@
[% RETURN UNLESS user.in_group(Param('restrict_comments_enable_group')) %]
[%# using a table to match alignment of the needinfo checkboxes %]
-<table>
+<table [%= IF bug_modal %]class="edit-show" style="display:none"[% END %]>
<tr>
<td>
<input type="checkbox" name="restrict_comments" id="restrict_comments"
@@ -24,3 +24,12 @@
</td>
</tr>
</table>
+[% IF bug_modal && bug.restrict_comments %]
+ <table class="edit-hide">
+ <tr>
+ <td>
+ <i>Commenting restricted to members of the <b>[% Param('restrict_comments_group') FILTER html %]</b> group.</i>
+ </td>
+ </tr>
+ </table>
+[% END %]