]> git.openstreetmap.org Git - rails.git/blob - app/views/map_bugs/_bug.rss.builder
e9f1420c152d826247a86fdf65b02ebe6e8cede2
[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   xml.author bug.author_name
14   xml.pubDate bug.updated_at.to_s(:rfc822)
15   xml.geo :lat, bug.lat
16   xml.geo :long, bug.lon
17   xml.georss :point, "#{bug.lat} #{bug.lon}"
18 end