summaryrefslogtreecommitdiff
path: root/src/templates/apps/room/rss2.xml
blob: 24a31896d2444e6c1d510f3d7a137430f3268e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
{% load prefix %}
<rss version="2.0"
        xmlns:atom="http://www.w3.org/2005/Atom"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
      <channel>
          <title>{{title}}</title>
          <description>{{description}}</description>
          <!-- {{tags}} -->
          <lastBuildDate>{{rfc822_date}}</lastBuildDate>
          <link>{{baseurl}}/room/+{{tags}}</link>
          <atom:link rel="self" type="application/rss+xml" href="{{baseurl}}/room/+{{tags}}.rss"/>
          {% if rooms %}
          {% for room in rooms %}
          <item>
                <title>{{room.name}}</title>
                {% if room.description %}
                <description>{{room.description}}</description>
                {% endif %}
                <link>{{room.url}}</link>
          </item>
          {% endfor %}
          {% endif %}
      </channel>  
</rss>