]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/_comments.rss.builder
Merge pull request #1588 from Georeactor/master
[rails.git] / app / views / changeset / _comments.rss.builder
index 5effbc7886af3b7c73e2bbf6f075b00d2df4ab4e..5c683c86d8ec224fe42ddd6d1bd5d5dc16e019ed 100644 (file)
@@ -1,19 +1,16 @@
 comments.each do |comment|
-
   xml.item do
     xml.title t("changeset.rss.comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)
-    
+
     xml.link url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
     xml.guid url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
 
     xml.description do
-      xml.cdata! render(:partial => "comment", :object => comment, :formats => [ :html ])
+      xml.cdata! render(:partial => "comment", :object => comment, :formats => [:html])
     end
 
-    if comment.author
-      xml.dc :creator, comment.author.display_name
-    end
+    xml.dc :creator, comment.author.display_name if comment.author
 
     xml.pubDate comment.created_at.to_s(:rfc822)
   end
-end
\ No newline at end of file
+end