]> git.openstreetmap.org Git - rails.git/blob - app/views/changeset/_comments.rss.builder
5effbc7886af3b7c73e2bbf6f075b00d2df4ab4e
[rails.git] / app / views / changeset / _comments.rss.builder
1 comments.each do |comment|
2
3   xml.item do
4     xml.title t("changeset.rss.comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)
5     
6     xml.link url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
7     xml.guid url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
8
9     xml.description do
10       xml.cdata! render(:partial => "comment", :object => comment, :formats => [ :html ])
11     end
12
13     if comment.author
14       xml.dc :creator, comment.author.display_name
15     end
16
17     xml.pubDate comment.created_at.to_s(:rfc822)
18   end
19 end