X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/40b452ac7431387979fa2c2cdd2565bae5993f29..aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a:/app/views/trace/georss.rss.builder diff --git a/app/views/trace/georss.rss.builder b/app/views/trace/georss.rss.builder index 0b2e26d11..8470e85cb 100644 --- a/app/views/trace/georss.rss.builder +++ b/app/views/trace/georss.rss.builder @@ -1,6 +1,6 @@ xml.instruct! -xml.rss("version" => "2.0", +xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/", "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#", "xmlns:georss" => "http://www.georss.org/georss") do @@ -10,7 +10,7 @@ xml.rss("version" => "2.0", xml.link url_for(:controller => :trace, :action => :list, :only_path => false) xml.image do - xml.url image_path("mag_map-rss2.0.png") + xml.url image_url("mag_map-rss2.0.png") xml.title t("trace.georss.title") xml.width 100 xml.height 100 @@ -25,14 +25,14 @@ xml.rss("version" => "2.0", xml.guid url_for(:controller => :trace, :action => :view, :id => trace.id, :display_name => trace.user.display_name, :only_path => false) xml.description do - xml.cdata! render(:partial => "description", :object => trace, :formats => [ :html ]) + xml.cdata! render(:partial => "description", :object => trace, :formats => [:html]) end xml.dc :creator, trace.user.display_name xml.pubDate trace.timestamp.to_s(:rfc822) - if trace.latitude and trace.longitude + if trace.latitude && trace.longitude xml.geo :lat, trace.latitude xml.geo :long, trace.longitude xml.georss :point, "#{trace.latitude} #{trace.longitude}"