summaryrefslogtreecommitdiff
path: root/app/views/rss/recent_changes.xml.builder
blob: c3b3ec9102410b9f67c6839c3d68d089362e8e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
xml.instruct!

xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do
  xml.title("CCC.de Recent Change")
  xml.link(:href => "http://www.ccc.de/")
  xml.link(:rel => "self", :href => "/rss/updates.xml")
  xml.updated(@items.first.updated_at.xmlschema)
  xml.author do
    xml.name("Chaos Computer Club e.V.")
  end
  xml.id("http://www.ccc.de/")
  
  @items.each do |item|
    xml.entry do
      xml.title(item.title)
      xml.link(
        :href => "http://www.ccc.de/#{item.node.unique_path}",
        :rel => "alternate"
      )
      xml.id(content_url_helper(item.node.unique_path))
      xml.updated(item.updated_at.xmlschema)
      xml.content(:type => "text") do
        xml.div("changed by #{item.user.login}")
      end
    end
    
  end
  
end