summaryrefslogtreecommitdiff
path: root/src/templates/apps/room/atom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/apps/room/atom.xml')
-rw-r--r--src/templates/apps/room/atom.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/templates/apps/room/atom.xml b/src/templates/apps/room/atom.xml
new file mode 100644
index 0000000..91990ca
--- /dev/null
+++ b/src/templates/apps/room/atom.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+{% load prefix %}
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>{{title}}</title>
+ <summary>{{description}}</summary>
+ <updated>{{date}}/updated>
+ <link rel="self" href="{{baseurl}}/room/+{{tags}}.atom"/>
+ <link href="{{baseurl}}/room/+{{tags}}"/>
+ {% if rooms %}
+ {% for room in rooms %}
+ <item>
+ <title>{{room.name}}</title>
+ {% if room.description %}
+ <summary>{{room.description}}</summary>
+ {% endif %}
+ <link href="{{room.go_url}}"/>
+ <updated>{{room.lastupdated}}</updated>
+ </item>
+ {% endfor %}
+ {% endif %}
+</feed> \ No newline at end of file