Split changeset comment handling into a changeset_comments controller
This commit is contained in:
parent
a39c645602
commit
19c2b92fb7
10 changed files with 406 additions and 370 deletions
13
app/views/changeset_comments/comments_feed.rss.builder
Normal file
13
app/views/changeset_comments/comments_feed.rss.builder
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue