diff options
author | Hugo Seabrook <hugo.seabrook@gmail.com> | 2013-02-15 07:04:00 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-02-15 07:04:00 +0100 |
commit | 921e81caf7ffc083ac664459b015d38fc250437d (patch) | |
tree | c5e85301c2365b5b641772696db57c24a02c6c58 /template/en/default/bug/comments.html.tmpl | |
parent | b6dedf486972c23b05f16a00c2be1c32e139eb1f (diff) | |
download | bugzilla-921e81caf7ffc083ac664459b015d38fc250437d.tar.gz bugzilla-921e81caf7ffc083ac664459b015d38fc250437d.tar.xz |
Bug 830333: Make the comment box hidden if bug_check_can_change_field reports the user is unable to comment on the bug
r=glob, a=LpSolit
Diffstat (limited to 'template/en/default/bug/comments.html.tmpl')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 62beb61ea..d2de3521c 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -141,18 +141,20 @@ [% IF mode == "edit" %] <span class="bz_comment_actions"> - [<a class="bz_reply_link" href="#add_comment" - [% IF user.settings.quote_replies.value != 'off' %] - onclick="replyToComment('[% count %]', '[% comment.id %]', '[% comment.author.name || comment.author.nick FILTER html FILTER js %]'); return false;" - [% END %] - >reply</a>] + [% IF bug.check_can_change_field('longdesc', 0, 1) %] + [<a class="bz_reply_link" href="#add_comment" + [% IF user.settings.quote_replies.value != 'off' %] + onclick="replyToComment('[% count %]', '[% comment.id %]', '[% comment.author.name || comment.author.nick FILTER html FILTER js %]'); return false;" + [% END %] + >reply</a>] + [% END %] <script type="text/javascript"><!-- addCollapseLink([% count %], 'Toggle comment display'); // --> </script> </span> [% END %] - [% IF mode == "edit" && user.is_insider %] + [% IF mode == "edit" && user.is_insider && bug.check_can_change_field('longdesc', 0, 1) %] <div class="bz_private_checkbox"> <input type="hidden" value="1" name="defined_isprivate_[% comment.id %]"> |