]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/index.rss.builder
Merge remote-tracking branch 'upstream/pull/1857'
[rails.git] / app / views / notes / index.rss.builder
1 xml.instruct!
2
3 xml.rss("version" => "2.0",
4         "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
5         "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
6         "xmlns:georss" => "http://www.georss.org/georss") do
7   xml.channel do
8     xml.title t("notes.rss.title")
9     xml.description t("notes.rss.description_area", :min_lat => @min_lat, :min_lon => @min_lon, :max_lat => @max_lat, :max_lon => @max_lon)
10     xml.link url_for(:controller => "site", :action => "index", :only_path => false)
11
12     xml << (render(:partial => "note", :collection => @notes) || "")
13   end
14 end