diff options
Diffstat (limited to 'app/views/rss/updates.xml.builder')
| -rw-r--r-- | app/views/rss/updates.xml.builder | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/rss/updates.xml.builder b/app/views/rss/updates.xml.builder index 6be49e9..451e724 100644 --- a/app/views/rss/updates.xml.builder +++ b/app/views/rss/updates.xml.builder | |||
| @@ -3,21 +3,22 @@ xml.instruct! | |||
| 3 | xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do | 3 | xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do |
| 4 | xml.title("Chaos Computer Club Updates") | 4 | xml.title("Chaos Computer Club Updates") |
| 5 | xml.link(:href => "http://www.ccc.de/") | 5 | xml.link(:href => "http://www.ccc.de/") |
| 6 | xml.link(:rel => "self", :href => "/rss/updates.xml") | 6 | xml.link(:rel => "self", :href => "#{@host}/rss/updates") |
| 7 | xml.updated(@items.first.published_at.xmlschema) | 7 | xml.updated(@items.first.published_at.xmlschema) |
| 8 | xml.author do | 8 | xml.author do |
| 9 | xml.name("Chaos Computer Club e.V.") | 9 | xml.name("Chaos Computer Club e.V.") |
| 10 | end | 10 | end |
| 11 | xml.id("http://www.ccc.de/") | 11 | xml.id("#{@host}/rss/updates") |
| 12 | 12 | ||
| 13 | @items.each do |item| | 13 | @items.each do |item| |
| 14 | xml.entry do | 14 | xml.entry do |
| 15 | xml.title(item.title) | 15 | xml.title(item.title) |
| 16 | xml.link( | 16 | xml.link( |
| 17 | :href => content_path_helper(item.node.unique_path), | 17 | :href => "#{@host}/de/#{item.node.unique_name}", |
| 18 | :rel => "alternate" | 18 | :rel => "alternate", |
| 19 | :type => "text/html" | ||
| 19 | ) | 20 | ) |
| 20 | xml.id(content_url_helper(item.node.unique_path)) | 21 | xml.id("#{@host}/de/#{item.node.unique_name}") |
| 21 | xml.updated(item.published_at.xmlschema) | 22 | xml.updated(item.published_at.xmlschema) |
| 22 | xml.content(:type => "xhtml") do | 23 | xml.content(:type => "xhtml") do |
| 23 | xml.div(item.body, :xmlns => "http://www.w3.org/1999/xhtml") | 24 | xml.div(item.body, :xmlns => "http://www.w3.org/1999/xhtml") |
