]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/_note.rss.builder
Merge branch 'wheres_this' of https://github.com/pnorman/openstreetmap-website into...
[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.closed?
5     xml.title t("note.rss.closed", :place => location)
6   elsif note.comments.length > 1
7     xml.title t("note.rss.commented", :place => location)
8   else
9     xml.title t("note.rss.opened", :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   xml.dc :creator, note.author.display_name if note.author
17
18   xml.pubDate note.created_at.to_s(:rfc822)
19   xml.geo :lat, note.lat
20   xml.geo :long, note.lon
21   xml.georss :point, "#{note.lat} #{note.lon}"
22 end