foodsoft/plugins/wiki/app/views/pages/all.rss.builder

20 lines
544 B
Text
Raw Permalink Normal View History

xml.instruct! :xml, :version => "1.0"
2014-01-04 20:12:01 +01:00
xml.rss :version => "2.0" do
xml.channel do
xml.title FoodsoftConfig[:name] + " Wiki"
xml.description ""
xml.link FoodsoftConfig[:homepage]
for page in @pages
xml.item do
xml.title page.title
xml.description page.diff, :type => "html"
xml.author User.find_by_id(page.updated_by).try(:display)
2014-01-04 20:12:01 +01:00
xml.pubDate page.updated_at.to_s(:rfc822)
xml.link wiki_page_path(page.permalink)
xml.guid page.updated_at.to_i
end
end
end
end