email.txt.tmpl 2.45 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
[%# 1.0@bugzilla.org %]
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s):     Myk Melez <myk@mozilla.org>
  #                     Jeff Hedlund <jeff.hedlund@matrixsi.com>
21
  #                     Frédéric Buclin <LpSolit@gmail.com>
22
  #%]
23 24 25

[% PROCESS global/variables.none.tmpl %]

26 27
[% bugidsummary = bug.bug_id _ ': ' _ bug.short_desc %]
[% attidsummary = attachment.id _ ': ' _ attachment.description %]
28
[% statuses = { '+' => "granted" , '-' => 'denied' , 'X' => "canceled" ,
29
                '?' => "asked" } %]
30 31

[% to_identity = "" %]
32
[% IF flag.status == '?' %]
33
  [% to_identity = flag.requestee.identity _ " for" %]
34
  [% subject_status = "requested" %]
35
[% ELSE %]
36 37
  [% IF flag.requester %]
    [% to_identity = flag.requester.identity _ "'s request for" %]
38 39
  [% END %]
  [% subject_status = statuses.${flag.status} %]
40
[% END %]
41
From: [% Param('mailfrom') %]
42
To: [% to %]
43
Subject: [% flag.type.name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %]
44
X-Bugzilla-Type: request
45 46
[%- IF attachment %] :
  [Attachment [% attachment.id %]] [% attachment.description %][% END %]
47 48 49 50

[%+ USE wrap -%]
[%- FILTER bullet = wrap(80) -%]

51
[% user.identity %] has [% statuses.${flag.status} %] [%+ to_identity %] [%+ flag.type.name %]:
52

53
[% terms.Bug %] [%+ bugidsummary %]
54
[% END %]
55
[%+ urlbase %]show_bug.cgi?id=[% bug.bug_id %]
56
[% IF attachment %]
57 58 59 60

[% FILTER bullet = wrap(80) %]
Attachment [% attidsummary %]
[%- END %]
61
[%+ urlbase %]attachment.cgi?id=[% attachment.id %]&action=edit
62 63 64
[%- END %]
[%- FILTER bullet = wrap(80) %]

65
[% USE Bugzilla %]
66
[% IF Bugzilla.cgi.param("comment") && Bugzilla.cgi.param("comment").length > 0 %]
67
------- Additional Comments from [% user.identity %]
68
[%+ Bugzilla.cgi.param("comment") %]
69 70 71
[% END %]

[%- END %]