3 xml.rss("version" => "2.0", 
 
   4         "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
 
   5         "xmlns:georss" => "http://www.georss.org/georss") do
 
   7     xml.title "OpenStreetBugs"
 
   8     xml.description t('bugs.rss.description_item',:id => @bug.id)
 
   9     xml.link url_for(:controller => "site", :action => "index", :only_path => false)
 
  12                 if @bug.status == "closed"
 
  13                         xml.title t('bugs.rss.closed', :place => @bug.nearby_place)     
 
  14                 else if @bug.map_bug_comment.length > 1
 
  15                         xml.title t('bugs.rss.comment', :place => @bug.nearby_place)
 
  17                         xml.title t('bugs.rss.new', :place => @bug.nearby_place)
 
  20         xml.link url_for(:controller => "browse", :action => "bug", :id => @bug.id, :only_path => false)
 
  21                 xml.guid url_for(:controller => "map_bugs", :action => "read", :id => @bug.id, :only_path => false)
 
  22         xml.description  htmlize(@bug.flatten_comment("<br><br>"))
 
  23                 if (!@bug.map_bug_comment.empty?)
 
  24                 xml.author @bug.map_bug_comment[-1].commenter_name
 
  26         xml.pubDate @bug.last_changed.to_s(:rfc822)
 
  27           xml.geo :lat, @bug.lat
 
  28           xml.geo :long, @bug.lon
 
  29           xml.georss :point, "#{@bug.lat} #{@bug.lon}"