From c42a6df0fd079651add3dfd26c44353d44fe5ceb Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 11 Jun 2013 16:06:51 +0800 Subject: Bug 881348: Do not display the Excluded list when sending bugmails --- template/en/default/bug/process/bugmail.html.tmpl | 79 +++++++++++------------ 1 file changed, 36 insertions(+), 43 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/process/bugmail.html.tmpl b/template/en/default/bug/process/bugmail.html.tmpl index 50f6e7aa8..8053ba525 100644 --- a/template/en/default/bug/process/bugmail.html.tmpl +++ b/template/en/default/bug/process/bugmail.html.tmpl @@ -24,66 +24,59 @@ # sent_bugmail: The results of Bugzilla::BugMail::Send(). #%] +[% USE CGI %] [% 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') + || CGI.cookie('show_bugmail_recipients') || !user.can_see_bug(mailing_bugid) %] +[% recipient_count = sent_bugmail.sent.size %] -
-[% PROCESS emails - description = "Email sent to" - names = sent_bugmail.sent -%] - -[% PROCESS emails - description = "Excluding" - names = sent_bugmail.excluded -%] -
- -[% 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 #%] -[%############################################################################%] - -[% BLOCK emails %] -
[% description FILTER html %]:
+
+
Email sent to:
[% IF user.can_see_bug(mailing_bugid) %] - [% IF names.size > 0 %] - [%+ FOREACH name = names %] + [% IF sent_bugmail.sent.size > 0 %] + [%+ FOREACH name = sent_bugmail.sent %] [% name FILTER html %][% ", " UNLESS loop.last() %] [% END %] [% ELSE %] no one [% END %] + (hide) [% ELSE %] (list of e-mails not available) [% END %]
-[% END %] +
+ +
+ [% IF recipient_count > 0 %] + Email sent to [% recipient_count FILTER html %] recipient[% 's' UNLESS recipient_count == 1 %]. + (show) + [% ELSE %] + No emails were sent. + [% END %] +
+ -- cgit v1.2.3-24-g4f1b