]> git.openstreetmap.org Git - rails.git/blob - app/views/note/_note.rss.builder
Move notes resources to assets directory
[rails.git] / app / views / note / _note.rss.builder
1 xml.item do
2   if note.status == "closed"
3     xml.title t('note.rss.closed', :place => note.nearby_place) 
4   elsif note.comments.length > 1
5     xml.title t('note.rss.comment', :place => note.nearby_place)
6   else
7     xml.title t('note.rss.new', :place => note.nearby_place)
8   end
9
10   xml.link url_for(:controller => "browse", :action => "note", :id => note.id, :only_path => false)
11   xml.guid url_for(:controller => "note", :action => "read", :id => note.id, :only_path => false)
12   with_format(:html) do
13     xml.description render(:partial => "description", :object => note)
14   end
15   xml.author note.author_name
16   xml.pubDate note.updated_at.to_s(:rfc822)
17   xml.geo :lat, note.lat
18   xml.geo :long, note.lon
19   xml.georss :point, "#{note.lat} #{note.lon}"
20 end