diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-13 11:15:32 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-13 11:15:32 +0200 |
commit | 3bb6c880d2d0476245cfe7bf8afa579e4ee5ba11 (patch) | |
tree | b890373234e94c3630660b84a7bbdf961c2ec7c9 /src/templates/apps | |
parent | 3b80bf37445404bed158f45daf240aaa5599453e (diff) |
replace hand-drawn feeds with the django syndication framework
Diffstat (limited to 'src/templates/apps')
-rw-r--r-- | src/templates/apps/room/atom.xml | 20 | ||||
-rw-r--r-- | src/templates/apps/room/list.html | 1 | ||||
-rw-r--r-- | src/templates/apps/room/rss2.xml | 26 |
3 files changed, 1 insertions, 46 deletions
diff --git a/src/templates/apps/room/atom.xml b/src/templates/apps/room/atom.xml deleted file mode 100644 index 17b36dd..0000000 --- a/src/templates/apps/room/atom.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -{% load prefix %} -<feed xmlns="http://www.w3.org/2005/Atom"> - <title>{{title}}</title> - <updated>{{rfc3339_date}}</updated> - <link rel="self" type="application/atom+xml" href="{{baseurl}}/room/+{{tags}}.atom"/> - <link href="{{baseurl}}/room/+{{tags}}"/> - {% if rooms %} - {% for room in rooms %} - <entry> - <title>{{room.name}}</title> - {% if room.description %} - <summary>{{room.description}}</summary> - {% endif %} - <link href="{{room.url}}"/> - <updated>{{room.updated}}</updated> - </entry> - {% endfor %} - {% endif %} -</feed>
\ No newline at end of file diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html index 6900a6d..f529650 100644 --- a/src/templates/apps/room/list.html +++ b/src/templates/apps/room/list.html @@ -17,6 +17,7 @@ {% block meta %} {% if tags %} <link rel="alternate" type="application/rss+xml" title="{{title}} (RSS 2.0)" href="{% prefix %}/room/+{{tags}}.rss" /> +<link rel="alternate" type="application/atom+xml" title="{{title}} (ATOM 1.0)" href="{% prefix %}/room/+{{tags}}.atom" /> {% endif %} {% endblock %} {% block content %} diff --git a/src/templates/apps/room/rss2.xml b/src/templates/apps/room/rss2.xml deleted file mode 100644 index 24a3189..0000000 --- a/src/templates/apps/room/rss2.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?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>
\ No newline at end of file |