<?xml version="1.0"?>
{# Copyright (C) 2006-2023 Edgewall Software

  This software is licensed as described in the file COPYING, which
  you should have received as part of this distribution. The terms
  are also available at http://trac.edgewall.com/license.html.

  This software consists of voluntary contributions made by many
  individuals. For the exact contribution history, see the revision
  history and logs, available at http://trac.edgewall.org/.
#}
##
## Query view - RSS flavor
##
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  ## jinjacheck: "no DTD" OK
  <channel>
    <title>
      # trans project = project.name

      ${project}: Ticket Query

      # endtrans
    </title>
    <link>${query_href}</link>
    <description>${project.descr}</description>
    <language>en-US</language>
    # if chrome.logo.src_abs:
    <image>
      <title>${project.name}</title>
      <url>${chrome.logo.src_abs}</url>
      <link>${query_href}</link>
    </image>
    # endif
    <generator>Trac ${trac.version}</generator>
    # for result in results:
    <item>
      # set href = abs_href.ticket(result.id)
      # if 'TICKET_VIEW' in perm('ticket', result.id):
      <link>${href}</link>
      <guid isPermaLink="false">${href}</guid>
      <title>#${result.id}: ${result.summary}</title>
      #   if result.time:
      <pubDate>${http_date(result.time)}</pubDate>
      #   endif
      #   set author = result.reporter
      #   include 'author_or_creator.rss'
      <description>${
      wiki_to_html(context.child('ticket', result.id), result.description)
      |forceescape
      }</description>
      <category>Results</category>
      <comments>${href}#changelog</comments>
      # endif
    </item>
    # endfor

 </channel>
</rss>
