Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4619'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Mar 24, 2024
2 parents 8ce4aab + 2cf3861 commit 65d8d12
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
14 changes: 14 additions & 0 deletions app/views/changeset_comments/_comment.rss.builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
xml.item do
xml.title t(".comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)

xml.link changeset_url(comment.changeset, :anchor => "c#{comment.id}")
xml.guid changeset_url(comment.changeset, :anchor => "c#{comment.id}")

xml.description do
xml.cdata! render(:partial => "comment", :object => comment, :formats => [:html])
end

xml.dc :creator, comment.author.display_name if comment.author

xml.pubDate comment.created_at.to_fs(:rfc822)
end
16 changes: 0 additions & 16 deletions app/views/changeset_comments/_comments.rss.builder

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/changeset_comments/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ xml.rss("version" => "2.0",
end
xml.link url_for(:controller => "site", :action => "index", :only_path => false)

xml << render(:partial => "comments", :object => @comments)
xml << render(:partial => "comment", :collection => @comments)
end
end

0 comments on commit 65d8d12

Please sign in to comment.