1[%# This Source Code Form is subject to the terms of the Mozilla Public
2  # License, v. 2.0. If a copy of the MPL was not distributed with this
3  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4  #
5  # This Source Code Form is "Incompatible With Secondary Licenses", as
6  # defined by the Mozilla Public License, v. 2.0.
7  #%]
8
9[%# INTERFACE:
10  # subject: subject line of message
11  # body: message body, shown before the query tables
12  # queries: array of hashes containing:
13  #     bugs: array containing hashes of fieldnames->values for each bug
14  #     title: the title given in the whine scheduling mechanism
15  #     name: the name of the query
16  #     columnlist: array of fieldnames to display in the mail
17  # author: user object for the person who scheduled this whine
18  # recipient: user object for the intended recipient of the message
19  #%]
20
21<!DOCTYPE html>
22<html>
23  <head>
24    <title>
25      [[% terms.Bugzilla %]] [% subject FILTER html %]
26    </title>
27  </head>
28  <body>
29
30    <pre>
31      [% body FILTER html %]
32    </pre>
33
34    <p>
35      [% IF author.login == recipient.login %]
36        <a href="[%+ urlbase FILTER html %]editwhines.cgi">
37            Whine スケジュールを編集する</a>
38      [% ELSE %]
39        この検索は [% author.login FILTER html %] により設定されています。
40      [% END %]
41    </p>
42
43
44[% IF queries.size %]
45  [% FOREACH query=queries %]
46
47    <h2>[%+ query.title FILTER html %] ([% query.bugs.size %] [%+ terms.bugs %])</h2>
48
49    <table>
50      <tr>
51        <th>ID</th>
52        [% FOREACH col = query.columnlist %]
53          [% NEXT IF col == 'bug_id' %]
54          <th align="left">[% field_descs.$col FILTER html %]</th>
55        [% END %]
56      </tr>
57
58      [% FOREACH bug=query.bugs %]
59        <tr>
60          <td><a href="[%+ urlbase FILTER html %]show_bug.cgi?id=
61              [%- bug.bug_id %]">[% bug.bug_id %]</a></td>
62          [% FOREACH col = query.columnlist %]
63            [% NEXT IF col == 'bug_id' %]
64            <td>[% display_value(col, bug.$col) FILTER html %]</td>
65          [% END %]
66        </tr>
67      [% END %]
68    </table>
69
70    [% IF author.login == recipient.login %]
71      <p>
72        <a href="[% urlbase FILTER html %]buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% query.name FILTER uri %]">[% terms.bug %] リストとして表示</a>
73      </p>
74    [% END %]
75  [% END %]
76[% ELSE %]
77  <h3>検索条件に合致する [% terms.bugs %] が見つかりませんでした。</h3>
78[% END %]
79
80  </body>
81</html>
82
83
84