1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Walter Hoehn <wassa@columbia.edu>
20
# John Belmonte <john@neggie.net>
21
# Jason Remillard <jremillardshop@letterboxes.org>
22
# Phil Ringnalda <bugzilla@philringnalda.com>
24
# This is a template for generating an Atom representation of a buglist.
27
[% PROCESS global/variables.none.tmpl %]
30
[% DEFAULT title = "$terms.Bugzilla $terms.Bugs" %]
32
<?xml version="1.0"[% IF Param('utf8') %] encoding="UTF-8"[% END %]?>
33
<feed xmlns="http://www.w3.org/2005/Atom">
34
<title>[% title FILTER xml %]</title>
35
<link rel="alternate" type="text/html"
36
href="[% Param('urlbase') %]buglist.cgi?
37
[%- urlquerypart.replace('ctype=atom[&]?','') FILTER xml %]"/>
38
<link rel="self" type="application/atom+xml"
39
href="[% Param('urlbase') %]buglist.cgi?
40
[%- urlquerypart FILTER xml %]"/>
41
<updated>[% date.format(format=>"%Y-%m-%dT%H:%M:%SZ",
42
time=>bugs.nsort('changedtime').last.changedtime,
43
gmt=>1) FILTER xml %]</updated>
44
<id>[% Param('urlbase') %]buglist.cgi?[% urlquerypart FILTER xml %]</id>
46
[% FOREACH bug = bugs %]
48
<title>[% "@" IF bug.secure_mode %][[% terms.Bug %] [%+ bug.bug_id FILTER xml %]] [% bug.short_desc FILTER xml %]</title>
49
<link rel="alternate" type="text/html"
50
href="[% Param('urlbase') FILTER xml %]show_bug.cgi?id=
51
[%- bug.bug_id FILTER xml %]"/>
52
<id>[% Param('urlbase') FILTER xml %]show_bug.cgi?id=[% bug.bug_id FILTER xml %]</id>
54
<name>[% bug.reporter_realname FILTER xml %]</name>
56
<updated>[% date.format(format=>"%Y-%m-%dT%H:%M:%SZ",time=>bug.changedtime,
57
gmt=>1) FILTER xml %]</updated>
59
[%# Filter out the entire block, so that we don't need to escape the html code out %]
63
<th>Field</th><th>Value</th>
65
<td>[% columns.opendate.title FILTER html %]</td>
66
<td>[% bug.opendate FILTER html %]</td>
68
<td>[% columns.assigned_to_realname.title FILTER html %]</td>
69
<td>[% bug.assigned_to_realname FILTER html %]</td>
71
<td>[% columns.priority.title FILTER html %]</td>
72
<td>[% bug.priority FILTER html %]</td>
74
<td>[% columns.bug_severity.title FILTER html %] </td>
75
<td>[% bug.bug_severity FILTER html %]</td>
77
<td>[% columns.bug_status.title FILTER html %]</td>
78
<td>[% bug.bug_status FILTER html %]</td>
80
<td>[% columns.changeddate.title FILTER html %]</td>
81
<td>[% bug.changeddate FILTER html -%]</td>