Source

bloodhound-trac / trac / timeline / templates / timeline.rss

<?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}</title>
    <link>${abs_href.timeline()}</link>
    <description>Trac Timeline</description>
    <language>${req.locale and \
                '%s-%s' % (req.locale.language, req.locale.territory) or \
                'en-US'}</language>
    <generator>Trac ${trac.version}</generator>
    <image py:if="chrome.logo.src_abs">
      <title>${project.name}</title>
      <url>${chrome.logo.src_abs}</url>
      <link>${abs_href.timeline()}</link>
    </image>

    <item py:for="event in events"
          py:with="abs_url = event.render('url', context)">
      <title>${
        plaintext(event.render('summary', context) or 
                  event.render('title', context), keeplinebreaks=False)
      }</title>
      <xi:include href="author_or_creator.rss" py:with="author = event.author"/>
      <pubDate>${http_date(event.date)}</pubDate>
      <link>${abs_url}</link>
      <guid isPermaLink="false">${abs_url}/${event.dateuid}</guid>
      <description>${
        unicode(event.render('description', context))
      }</description>
      <category>$event.kind</category>
    </item>

   </channel>
</rss>