bugmail.html.tmpl 1.26 KB
Newer Older
1 2 3
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
  #
5 6
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
7 8 9
  #%]

[%# INTERFACE:
10 11
  # mailing_bugid: The bug ID that email is being sent for.
  # sent_bugmail: The results of Bugzilla::BugMail::Send().
12 13
  #%]

14
<dl>
15 16
[% PROCESS emails
   description = "Email sent to"
17
   names = sent_bugmail.sent
18
%]
19

20 21
[% PROCESS emails
   description = "Excluding"
22
   names = sent_bugmail.excluded
23
%]
24
</dl>
25 26 27 28 29 30

[%############################################################################%]
[%# Block for a set of email addresses                                       #%]
[%############################################################################%]

[% BLOCK emails %]
31 32
  <dt>[% description FILTER html %]:</dt>
  <dd>
33 34 35
  [% IF user.can_see_bug(mailing_bugid) %]
    [% IF names.size > 0 %]
      [%+ FOREACH name = names %]
36
        <code>[% name FILTER html %]</code>[% ", " UNLESS loop.last() %]
37 38 39
      [% END %]
    [% ELSE %]
      no one
40 41
    [% END %]
  [% ELSE %]
42
    (list of e-mails not available)
43
  [% END %]
44
  </dd>
45
[% END %]