summaryrefslogtreecommitdiffstats
path: root/extensions/RestrictComments
diff options
context:
space:
mode:
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 %]