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
8 xml.title t("trace.georss.title")
9 xml.description t("trace.georss.title")
10 xml.link url_for(:controller => :trace, :action => :list, :only_path => false)
13 xml.url image_path("mag_map-rss2.0.png", :host => SERVER_URL)
14 xml.title t("trace.georss.title")
17 xml.link url_for(:controller => :trace, :action => :list, :only_path => false)
20 @traces.each do |trace|
24 xml.link url_for(:controller => :trace, :action => :view, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
25 xml.guid url_for(:controller => :trace, :action => :view, :id => trace.id, :display_name => trace.user.display_name, :only_path => false)
28 xml.cdata! render(:partial => "description", :object => trace, :formats => [:html])
31 xml.dc :creator, trace.user.display_name
33 xml.pubDate trace.timestamp.to_s(:rfc822)
35 if trace.latitude && trace.longitude
36 xml.geo :lat, trace.latitude
37 xml.geo :long, trace.longitude
38 xml.georss :point, "#{trace.latitude} #{trace.longitude}"