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[% DEFAULT title = "$terms.Bugzilla $terms.Bugs" %]
10
11<?xml version="1.0"[% IF Param('utf8') %] encoding="UTF-8"[% END %]?>
12<feed xmlns="http://www.w3.org/2005/Atom">
13  <title>[% title FILTER xml %]</title>
14  <link rel="alternate" type="text/html"
15        href="[% urlbase FILTER html %]buglist.cgi?
16        [%- urlquerypart.replace('ctype=atom[&]?','') FILTER xml %]"/>
17  <link rel="self" type="application/atom+xml"
18        href="[% urlbase FILTER html %]buglist.cgi?
19        [%- urlquerypart FILTER xml %]"/>
20  <updated>[% bugs.sort('changedtime').last.changedtime FILTER time("%Y-%m-%dT%H:%M:%SZ", "UTC")
21    FILTER xml %]</updated>
22  <id>[% urlbase FILTER html %]buglist.cgi?[% urlquerypart FILTER xml %]</id>
23
24  [% FOREACH bug = bugs %]
25  <entry>
26    <title>[% "@" IF bug.secure_mode %][[% terms.Bug %] [%+ bug.bug_id FILTER xml %]] [% bug.short_desc FILTER xml %]</title>
27    <link rel="alternate" type="text/html"
28          href="[% urlbase FILTER html %]show_bug.cgi?id=
29          [%- bug.bug_id FILTER xml %]"/>
30    <id>[% urlbase FILTER xml %]show_bug.cgi?id=[% bug.bug_id FILTER xml %]</id>
31    <author>
32      <name>[% bug.reporter_realname ? bug.reporter_realname : bug.reporter FILTER xml %]</name>
33    </author>
34    <updated>[% bug.changedtime FILTER time("%Y-%m-%dT%H:%M:%SZ", "UTC") FILTER xml %]</updated>
35    <summary type="html">
36      [%# Filter out the entire block, so that we don't need to escape the html code out %]
37      [% FILTER xml %]
38      <table>
39      <tr>
40        <th>Field</th><th>Value</th>
41      </tr><tr class="bz_feed_product">
42        <td>[% columns.product.title FILTER html %]</td>
43        <td>[% bug.product FILTER html %]</td>
44      </tr><tr class="bz_feed_component">
45        <td>[% columns.component.title FILTER html %]</td>
46        <td>[% bug.component FILTER html %]</td>
47      </tr><tr class="bz_feed_assignee">
48        <td>[% columns.assigned_to_realname.title FILTER html %]</td>
49        <td>[% bug.assigned_to_realname ? bug.assigned_to_realname : bug.assigned_to FILTER html %]</td>
50      </tr><tr class="bz_feed_reporter">
51        <td>[% columns.reporter_realname.title FILTER html %]</td>
52        <td>[% bug.reporter_realname ? bug.reporter_realname : bug.reporter FILTER html %]</td>
53      </tr><tr class="bz_feed_bug_status">
54        <td>[% columns.bug_status.title FILTER html %]</td>
55        <td>[% display_value("bug_status", bug.bug_status) FILTER html %]</td>
56      </tr><tr class="bz_feed_resolution">
57        <td>[% columns.resolution.title FILTER html %] </td>
58        <td>[% display_value("resolution", bug.resolution) FILTER html %]</td>
59      </tr><tr class="bz_feed_priority">
60        <td>[% columns.priority.title FILTER html %]</td>
61        <td>[% display_value("priority", bug.priority) FILTER html %]</td>
62      </tr><tr class="bz_feed_severity">
63        <td>[% columns.bug_severity.title FILTER html %] </td>
64        <td>[% display_value("bug_severity", bug.bug_severity) FILTER html %]</td>
65      [% IF Param("usetargetmilestone") %]
66      </tr><tr class="bz_feed_target_milestone">
67        <td>[% columns.target_milestone.title FILTER html %]</td>
68        <td>[% bug.target_milestone FILTER html %]</td>
69      [% END %]
70      </tr><tr class="bz_feed_creation_date">
71        <td>[% columns.opendate.title FILTER html %]</td>
72        <td>[% bug.opendate FILTER html %]</td>
73      </tr><tr class="bz_feed_changed_date">
74        <td>[% columns.changeddate.title FILTER html %]</td>
75        <td>[% bug.changeddate FILTER html -%]</td>
76      </tr>
77      </table>
78      [% END %]
79    </summary>
80  </entry>
81  [% END %]
82</feed>
83