summaryrefslogtreecommitdiffstats
path: root/extensions/RequestNagger/template/en/default/email/request_nagging-watching.html.tmpl
blob: 14e4d7f4ef2bf7a208c506c72a93005f9eba347b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[%# 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/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% PROCESS "global/field-descs.none.tmpl" %]

<!doctype html>
<html>

<head>
  <title>[[% terms.Bugzilla %]] Overdue Requests Report</title>
</head>

<body bgcolor="#ffffff">

<p>
  The following is a list of people who you are watching that are involved in
  overdue requests.
</p>

[% FOREACH login = requests.keys.sort %]
  [%
    target    = requests.item(login).target;
    requestee = requests.item(login).requestee;
    setter    = requests.item(login).setter;
    summary   = requests.item(login).summary;
    bug_ids   = requests.item(login).bug_ids;
  %]
  <h3>
    [% target.realname || target.login FILTER html %]
  </h3>
  <ul>
    [% IF requestee.size %]
      <li>
        Requested of: [% summary.requestee FILTER html %]
        (<a href="[% urlbase FILTER none %]buglist.cgi?bug_id=[% bug_ids.requestee.join(",") FILTER uri %]">buglist</a>)
      </li>
    [% END %]
    [% IF setter.size %]
      <li>
        Waiting on: [% summary.setter FILTER html %]
        (<a href="[% urlbase FILTER none %]buglist.cgi?bug_id=[% bug_ids.setter.join(",") FILTER uri %]">buglist</a>)
      </li>
    [% END %]
    </li>
  </ul>
[% END %]

[% FOREACH login = requests.keys.sort %]
  [%
    target    = requests.item(login).target;
    requestee = requests.item(login).requestee;
    setter    = requests.item(login).setter;
    summary   = requests.item(login).summary;
    types     = requests.item(login).types;
  %]

  <hr>

  <h3>
    [% target.realname || target.login FILTER html %]<br>
  </h3>

  [% PROCESS requests report="requestee" request_list=requestee %]
  [% PROCESS requests report="setter" request_list=setter %]

[% END %]

<div>
  <hr style="border: 1px dashed #969696">
  <a href="[% urlbase FILTER none %]userprefs.cgi?tab=request_nagging">
    Change who you are watching
  </a>
</div>

<div style="font-size: 90%; color: #666666">
  <hr style="border: 1px dashed #969696">
  <b>You are receiving this mail because:</b>
  <ul>
    <li>you are watching someone with overdue requests.</li>
  </ul>
</div>
@@body-headers@@
</body>
</html>

[% BLOCK requests %]
  [% RETURN UNLESS request_list.size %]
  [% FOREACH type IN types.item(report) %]

    <h3>
      [% type FILTER upper FILTER html %]
      [%= report == "requestee" ? "requested of" : "waiting on" FILTER none %]
    </h3>

    <ul>
      [% FOREACH request IN request_list.item(type) %]
        <li>
          <a href="[% urlbase FILTER none %]show_bug.cgi?id=[% request.bug.id FILTER none %]"
            title="[% request.bug.tooltip  FILTER html %]">
            [% request.bug.id FILTER none %] - [% request.bug.short_desc FILTER html %]
          </a><br>

          <b>[% request.flag.age FILTER html %]</b>
          [% IF report == "requestee" %]
            from [% request.setter.realname || request.setter.login FILTER html %]
          [% ELSE %]
            to [% request.requestee.realname || request.requestee.login FILTER html %]
          [% END %]

          [% IF request.flag.deferred %]
            <br>
            Deferred until [%+ request.flag.deferred.ymd FILTER html %]<br>
          [% END %]
        </li>
      [% END %]
    </ul>

  [% END %]

[% END %]