diff options
| author | hukl <contact@smyck.org> | 2009-09-11 22:32:25 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-11 22:32:25 +0200 |
| commit | ba221a5c15e6b2d818df6cf0a8d9c5c62906d213 (patch) | |
| tree | 96203d13757cd05124ac73682162b639e286524b /app/views/rss/recent_changes.xml.builder | |
| parent | 7b34b515a6a24579d8c84c9b8b84f818289b898f (diff) | |
first steps for recent changes rss feed
Diffstat (limited to 'app/views/rss/recent_changes.xml.builder')
| -rw-r--r-- | app/views/rss/recent_changes.xml.builder | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/rss/recent_changes.xml.builder b/app/views/rss/recent_changes.xml.builder new file mode 100644 index 0000000..390fbdf --- /dev/null +++ b/app/views/rss/recent_changes.xml.builder | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | xml.instruct! | ||
| 2 | |||
| 3 | xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do | ||
| 4 | xml.title("CCC.de Recent Change") | ||
| 5 | xml.link(:href => "http://www.ccc.de/") | ||
| 6 | xml.link(:rel => "self", :href => "/rss/updates.xml") | ||
| 7 | xml.updated(@items.first.published_at.xmlschema) | ||
| 8 | xml.author do | ||
| 9 | xml.name("Chaos Computer Club e.V.") | ||
| 10 | end | ||
| 11 | xml.id("http://www.ccc.de/") | ||
| 12 | |||
| 13 | @items.each do |item| | ||
| 14 | xml.entry do | ||
| 15 | xml.title(item.title) | ||
| 16 | xml.link( | ||
| 17 | :href => content_path_helper(item.node.unique_path), | ||
| 18 | :rel => "alternate" | ||
| 19 | ) | ||
| 20 | xml.id(content_url_helper(item.node.unique_path)) | ||
| 21 | xml.updated(item.updated_at.xmlschema) | ||
| 22 | xml.content(:type => "text") do | ||
| 23 | xml.div("changed by #{item.user.login}") | ||
| 24 | end | ||
| 25 | end | ||
| 26 | |||
| 27 | end | ||
| 28 | |||
| 29 | end \ No newline at end of file | ||
