ctdo-trac/TracRendezVous/tracrendezvous/event/templates/upcoming_events.rss

36 lines
1.8 KiB
XML
Raw Normal View History

2012-03-31 15:45:24 +00:00
<?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}</title>
<link>${abs_href.event("upcoming")}</link>
<description>Die kommenden Termine im und Rund um den 'CTDO'</description>
<language>de-de</language>
<image py:if="chrome.logo.src">
<title>$project.name</title>
<url>${abs_href.chrome(chrome.logo.src)}</url>
<link>${abs_href.chrome(chrome.logo.src)}</link>
</image>
<generator>TracRendezvous</generator>
<item py:for="key,value in events">
<pubDate>${http_date(today)}</pubDate>
<title>$event.name</title>
<link>${abs_href.events(event.srv_id)}</link>
<guid isPermaLink="false">${abs_href.events(event.srv_id)}</guid>
<description>
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;When:&lt;/strong&gt; &lt;em&gt;${event.time_begin.strftime("%d.%m.%Y %Z")} - ${event.time_end.strftime("%d.%m.%Y %Z")}&lt;/em&gt;&lt;/li&gt;
<py:if test="event.location">&lt;li&gt;&lt;strong&gt;Location:&lt;/strong&gt; &lt;em&gt;$event.location.name&lt;/em&gt;&lt;/li&gt;</py:if>
<py:if test="event.type_name">&lt;li&gt;&lt;strong&gt;Type:&lt;/strong&gt; &lt;em&gt;$event.type_name&lt;/em&gt;&lt;/li&gt;</py:if>
<py:if test="event.tags">&lt;li&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;em&gt;$event.tags&lt;/em&gt;&lt;/li&gt;</py:if>
<py:if test="event.attendees">&lt;li&gt;&lt;strong&gt;Attendees:&lt;/strong&gt; &lt;em&gt;$event.attendees&lt;/em&gt;&lt;/li&gt;</py:if>
&lt;/ul&gt;
</description>
<category>Upcoming Events</category>
</item>
</channel>
</rss>