]> git.openstreetmap.org Git - rails.git/blob - app/views/map_bugs/_bug.rss.builder
Make sure the ruby quadtile code give the same result as the C version
[rails.git] / app / views / map_bugs / _bug.rss.builder
1 xml.item do
2   if bug.status == "closed"
3     xml.title t('bugs.rss.closed', :place => bug.nearby_place)  
4   elsif bug.comments.length > 1
5     xml.title t('bugs.rss.comment', :place => bug.nearby_place)
6   else
7     xml.title t('bugs.rss.new', :place => bug.nearby_place)
8   end
9
10   xml.link url_for(:controller => "browse", :action => "bug", :id => bug.id, :only_path => false)
11   xml.guid url_for(:controller => "map_bugs", :action => "read", :id => bug.id, :only_path => false)
12   xml.description  htmlize(bug.flatten_comment("<br><br>"))
13
14   unless bug.comments.empty?
15     xml.author bug.comments[-1].commenter_name
16   end
17
18   xml.pubDate bug.last_changed.to_s(:rfc822)
19   xml.geo :lat, bug.lat
20   xml.geo :long, bug.lon
21   xml.georss :point, "#{bug.lat} #{bug.lon}"
22 end