-
-
Notifications
You must be signed in to change notification settings - Fork 944
/
query_rss.cs
46 lines (46 loc) · 1.47 KB
/
query_rss.cs
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
<?xml version="1.0"?>
<rss version="2.0">
<channel><?cs
if:project.name.encoded ?>
<title><?cs var:project.name.encoded ?>: Ticket Query</title><?cs
else ?>
<title>Ticket Query</title><?cs
/if ?>
<link><?cs var:base_host ?><?cs var:trac.href.query ?></link><?cs
if:project.descr ?>
<description><?cs var:project.descr ?></description><?cs
/if ?>
<language>en-us</language>
<image>
<title><?cs var:project.name.encoded ?></title>
<url><?cs
if:!header_logo.src_abs ?><?cs var:base_host ?><?cs
/if ?><?cs
var:header_logo.src ?></url>
<link><?cs var:base_host ?><?cs var:trac.href.timeline ?></link><?cs
if:header_logo.width ?>
<width><?cs var:header_logo.width ?></width><?cs
/if ?><?cs
if:header_logo.height ?>
<height><?cs var:header_logo.height ?></height><?cs
/if ?>
</image>
<generator>Trac v<?cs var:trac.version ?></generator><?cs
each:result = query.results ?>
<item>
<link><?cs var:result.href ?></link>
<guid isPermaLink="true"><?cs var:result.href ?></guid>
<title><?cs var:'#' + result.id + ': ' + result.summary ?></title><?cs
if:result.created ?>
<pubDate><?cs var:result.created ?></pubDate><?cs
/if ?><?cs
if:result.reporter ?>
<author><?cs var:result.reporter ?></author><?cs
/if ?>
<description><?cs var:result.description ?></description>
<category>Tickets</category>
<comments><?cs var:result.href ?>#changelog</comments>
</item><?cs
/each ?>
</channel>
</rss>