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