Atom Feeds (bis)
Remove some vestiges of RSS 2.0.
This commit is contained in:
parent
3a57d3aade
commit
493803cfd1
|
@ -19,7 +19,6 @@ module CacheSweepingHelper
|
||||||
%w(authors atom_with_content atom_with_headlines).each do |action|
|
%w(authors atom_with_content atom_with_headlines).each do |action|
|
||||||
expire_action :controller => 'wiki', :web => web.address, :action => action
|
expire_action :controller => 'wiki', :web => web.address, :action => action
|
||||||
end
|
end
|
||||||
expire_fragment :controller => 'wiki', :web => web.address, :action => %w(rss_with_headlines rss_with_content)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
xml.rss('version' => '2.0') do
|
|
||||||
xml.channel do
|
|
||||||
xml.title(@web.name)
|
|
||||||
xml.link(url_for(:only_path => false, :web => @web_name, :action => @link_action, :id => 'HomePage'))
|
|
||||||
xml.description('An Instiki wiki')
|
|
||||||
xml.language('en-us')
|
|
||||||
xml.ttl('40')
|
|
||||||
|
|
||||||
for page in @pages_by_revision
|
|
||||||
xml.item do
|
|
||||||
xml.title(page.plain_name)
|
|
||||||
unless @hide_description
|
|
||||||
xml.description(rendered_content(page))
|
|
||||||
end
|
|
||||||
xml.pubDate(page.revised_at.getgm.strftime('%a, %d %b %Y %H:%M:%S Z'))
|
|
||||||
xml.guid(url_for(:only_path => false, :web => @web_name, :action => @link_action, :id => page.name))
|
|
||||||
xml.link(url_for(:only_path => false, :web => @web_name, :action => @link_action, :id => page.name))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in a new issue