Split changeset comment handling into a changeset_comments controller

This commit is contained in:
Andy Allan 2018-10-31 19:56:26 +01:00
parent a39c645602
commit 19c2b92fb7
10 changed files with 406 additions and 370 deletions

View file

@ -0,0 +1,13 @@
xml.rss("version" => "2.0",
"xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
xml.channel do
if @changeset
xml.title t("changeset.rss.title_particular", :changeset_id => @changeset.id)
else
xml.title t("changeset.rss.title_all")
end
xml.link url_for(:controller => "site", :action => "index", :only_path => false)
xml << render(:partial => "comments", :object => @comments)
end
end