<?xml version="1.0"?>
<rss version="2.0" xmlns:py="http://genshi.edgewall.org/"
                   xmlns:dc="http://purl.org/dc/elements/1.1/"
                   xmlns:xi="http://www.w3.org/2001/XInclude">
  <channel>
    <title>$project.name: Ticket Query</title>
    <link>$query_href</link>
    <description>$project.descr</description>
    <language>en-US</language>
    <image py:if="chrome.logo.src_abs">
      <title>$project.name</title>
      <url>$chrome.logo.src_abs</url>
      <link>$query_href</link>
    </image>
    <generator>Trac $trac.version</generator>

    <item py:for="result in results" py:with="href = abs_href.ticket(result.id)">
      <py:if test="'TICKET_VIEW' in perm('ticket', result.id)">
        <link>$href</link>
        <guid isPermaLink="false">$href</guid>
        <title>#$result.id: ${result.summary}</title>
        <pubDate py:if="result.time">${http_date(result.time)}</pubDate>
        <xi:include href="author_or_creator.rss" py:with="author = result.reporter"/>
        <description>${unicode(wiki_to_html(context.child('ticket', result.id), result.description))}</description>
        <category>Results</category>
        <comments>$href#changelog</comments>
      </py:if>
    </item>

 </channel>
</rss>
