From: joerg
Date: Sat, 20 Dec 2008 22:24:36 +0000 (+0000)
Subject: Add atom django template
X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=39bd1259d9ba738bc9fbac8101812b4643d72df2;p=deb%2Fhackedgotchi.git
Add atom django template
git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@1058 c2f067bf-98e0-425f-9c98-e76020cfa380
---
diff --git a/config/config.ini b/config/config.ini
index afd0126..af91b36 100644
--- a/config/config.ini
+++ b/config/config.ini
@@ -43,7 +43,7 @@ log_level = DEBUG
spider_threads = 15
# template_files: Space-separated list of output template files
-template_files = templates/index.html.dj templates/atom.xml.tmpl templates/rss20.xml.tmpl templates/rss10.xml.tmpl templates/opml.xml.tmpl templates/foafroll.xml.tmpl
+template_files = templates/index.html.dj templates/atom.xml.dj templates/rss20.xml.tmpl templates/rss10.xml.tmpl templates/opml.xml.tmpl templates/foafroll.xml.tmpl
# The following provide defaults for each template:
# items_per_page: How many items to put on each page
diff --git a/config/config.ini.tmpl b/config/config.ini.tmpl
index b5238b0..54d836d 100644
--- a/config/config.ini.tmpl
+++ b/config/config.ini.tmpl
@@ -77,7 +77,7 @@ log_level = DEBUG
spider_threads = 15
# template_files: Space-separated list of output template files
-template_files = templates/index.html.dj templates/atom.xml.tmpl templates/rss20.xml.tmpl templates/rss10.xml.tmpl templates/opml.xml.tmpl templates/foafroll.xml.tmpl
+template_files = templates/index.html.dj templates/atom.xml.dj templates/rss20.xml.tmpl templates/rss10.xml.tmpl templates/opml.xml.tmpl templates/foafroll.xml.tmpl
# The following provide defaults for each template:
# items_per_page: How many items to put on each page
diff --git a/templates/atom.xml.dj b/templates/atom.xml.dj
new file mode 100644
index 0000000..3aaa064
--- /dev/null
+++ b/templates/atom.xml.dj
@@ -0,0 +1,31 @@
+
+
+
+ {{ name }}
+
+
+ {{ feed }}
+ {{ date_iso }}
+ {{ generator }}
+
+{% for item in Items %}
+
+ {{ item.title }}
+
+ {{ item.id }}
+ {{ item.date_iso }}
+ {{ item.summary }}
+ {{ item.content }}
+
+ {% firstof item.author_name item.channel_author_name item.channel_name %}
+ {% if item.author_email or item.channel_author_email %} {% firstof item.author_email item.channel_author_email %} {% else %} {{ item.channel_link }} {% endif %}
+
+
+
+ {% endfor %}
+
diff --git a/templates/index.html.dj b/templates/index.html.dj
index 951e0bb..14ec4ab 100644
--- a/templates/index.html.dj
+++ b/templates/index.html.dj
@@ -89,7 +89,7 @@
- {{ Config.lastupdatetext }} {{ date }}
{{ Config.utctext }}
+ {{ Config.lastupdatetext }} {{ date|date:"d M Y H:i" }}
{{ Config.utctext }}
{{ Config.contacttext }} {{ owner_name }}