1. Alex Willmer
  2. trac-ticketlinks


trac-ticketlinks / templates / ticket_rss.cs

<?xml version="1.0"?>
<!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> -->
<rss version="2.0">
  if:project.name_encoded ?>
   <title><?cs var:project.name_encoded ?>: Ticket <?cs var:title ?></title><?cs 
  else ?>
   <title>Ticket <?cs var:title ?></title><?cs 
  /if ?>
  <link><?cs var:base_host ?><?cs var:ticket.href ?></link>
  <description><?cs var:ticket.description.formatted ?></description>
  <generator>Trac v<?cs var:trac.version ?></generator><?cs
  if:chrome.logo.src ?>
    <title><?cs var:project.name_encoded ?></title>
    <url><?cs if:!chrome.logo.src_abs ?><?cs var:base_host ?><?cs /if ?><?cs
     var:chrome.logo.src ?></url>
    <link><?cs var:base_host ?><?cs var:ticket.href ?></link>
  /if ?><?cs 
  each:change = ticket.changes ?>
    if:change.author ?><author><?cs var:change.author ?></author><?cs
    /if ?>
    <pubDate><?cs var:change.http_date ?></pubDate>
    <title><?cs var:change.title ?></title>
    <link><?cs var:base_host ?><?cs var:ticket.href ?><?cs 
     if:change.cnum ?>#comment:<?cs var:change.cnum ?><?cs
     /if ?></link>
    <guid isPermaLink="false"><?cs var:base_host ?><?cs var:ticket.href ?><?cs 
     if:change.cnum ?>#comment:<?cs var:change.cnum ?><?cs
     /if ?></guid>
    <?cs if:len(change.fields) ?>
    each:field = change.fields ?>
    &lt;li&gt;&lt;strong&gt;<?cs name:field ?>&lt;/strong&gt; <?cs
     if:!field.old ?>set to &lt;em&gt;<?cs
      var:field.new ?>&lt;/em&gt;<?cs
     elif:field.new ?>changed from &lt;em&gt;<?cs var:field.old
      ?>&lt;/em&gt; to &lt;em&gt;<?cs
      var:field.new ?>&lt;/em&gt;.<?cs
     else ?>deleted<?cs
     /if ?>&lt;/li&gt;<?cs
    /each ?>
    <?cs /if ?>
    <?cs var:change.comment ?>
  /each ?>