Fix changeset comments feed timeout

This commit is contained in:
Anton Khorev 2024-03-24 05:01:05 +03:00
parent e272a384ce
commit 8a84825b02
4 changed files with 32 additions and 13 deletions

View file

@ -1,12 +0,0 @@
atom_feed(:language => I18n.locale, :schema_date => 2009,
:id => url_for(params.merge(:only_path => false)),
:root_url => url_for(params.merge(:only_path => false, :format => nil)),
"xmlns:georss" => "http://www.georss.org/georss") do |feed|
feed.title @title
feed.subtitle :type => "xhtml" do |xhtml|
xhtml.p do |p|
p << t(".sorry")
end
end
end

View file

@ -1 +0,0 @@
<p><%= t ".sorry" %></p>

View file

@ -0,0 +1,12 @@
xml.rss("version" => "2.0",
"xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
xml.channel do
if params[:changeset_id]
xml.title t("changeset_comments.feeds.show.title_particular", :changeset_id => params[:changeset_id])
else
xml.title t("changeset_comments.feeds.show.title_all")
end
xml.link root_url
xml.description t(".sorry")
end
end