X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6403515897e52457016ce8703cbbc0f9b2bbf56d..70cb93a101638596ecae5782575ada2d4d08c8dd:/app/views/traces/georss.rss.builder diff --git a/app/views/traces/georss.rss.builder b/app/views/traces/georss.rss.builder index 991f74ebb..ad5bd45b2 100644 --- a/app/views/traces/georss.rss.builder +++ b/app/views/traces/georss.rss.builder @@ -21,16 +21,16 @@ xml.rss("version" => "2.0", xml.item do xml.title trace.name - xml.link url_for(:controller => :traces, :action => :show, :id => trace.id, :display_name => trace.user.display_name, :only_path => false) - xml.guid url_for(:controller => :traces, :action => :show, :id => trace.id, :display_name => trace.user.display_name, :only_path => false) + xml.link show_trace_url(trace.user, trace) + xml.guid show_trace_url(trace.user, trace) xml.description do - xml.cdata! render(:partial => "description", :object => trace, :formats => [:html]) + xml.cdata! render(:partial => "description", :object => trace, :as => "trace", :formats => [:html]) end xml.dc :creator, trace.user.display_name - xml.pubDate trace.timestamp.to_formatted_s(:rfc822) + xml.pubDate trace.timestamp.to_fs(:rfc822) if trace.latitude && trace.longitude xml.geo :lat, trace.latitude