From 355f4c5d48d49bc0ab3f462ebce8ca5178ef380f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 17 Nov 2011 13:32:03 +0800 Subject: Bug 661901: hide bugmail recipients from new users --- template/en/default/bug/process/bugmail.html.tmpl | 31 ++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'template/en/default') diff --git a/template/en/default/bug/process/bugmail.html.tmpl b/template/en/default/bug/process/bugmail.html.tmpl index b0132a2fe..50f6e7aa8 100644 --- a/template/en/default/bug/process/bugmail.html.tmpl +++ b/template/en/default/bug/process/bugmail.html.tmpl @@ -26,7 +26,15 @@ [% PROCESS global/variables.none.tmpl %] -
+[%# hide the recipient list by default from new users %] +[% show_recipients = + user.settings.post_bug_submit_action.value == 'nothing' + || user.in_group('canconfirm') + || !user.can_see_bug(mailing_bugid) +%] + +
[% PROCESS emails description = "Email sent to" names = sent_bugmail.sent @@ -38,6 +46,27 @@ %]
+[% IF !show_recipients %] + [% recipient_count = sent_bugmail.sent.size %] +
+ [% IF recipient_count > 0 %] + Email sent to [% recipient_count FILTER html %] + recipient[% 's' UNLESS recipient_count == 1 %]. + [% ELSE %] + No emails were sent. + [% END %] + (show) +
+[% END %] + [%############################################################################%] [%# Block for a set of email addresses #%] [%############################################################################%] -- cgit v1.2.3-24-g4f1b