blob: cce3b5d852959d5fe00cb097755db35a756eda6c (
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 => "https://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("https://www.ccc.de/")
@items.each do |item|
xml.entry do
xml.title(item.title)
xml.link(
:href => "https://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
|