]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/_note.rss.builder
Remove nearby_place from the note model
[rails.git] / app / views / notes / _note.rss.builder
1 xml.item do
2   location_string = Rails.cache.fetch("location_description_#{note.lat}_#{note.lon}_#{locale}") do
3     describe_location note.lat, note.lon, 14, locale
4   end 
5   if note.status == "closed"
6     xml.title t('note.rss.closed', :place => location_string)   
7   elsif note.comments.length > 1
8     xml.title t('note.rss.comment', :place => location_string)
9   else
10     xml.title t('note.rss.new', :place => location_string)
11   end
12
13   xml.link browse_note_url(note)
14   xml.guid note_url(note)
15   xml.description render(:partial => "description", :object => note, :formats => [ :html ])
16   xml.author note.comments.first.author_name
17   xml.pubDate note.updated_at.to_s(:rfc822)
18   xml.geo :lat, note.lat
19   xml.geo :long, note.lon
20   xml.georss :point, "#{note.lat} #{note.lon}"
21 end