2023-05-12 13:01:12 +02:00
|
|
|
xml.instruct! :xml, version: '1.0'
|
|
|
|
xml.rss version: '2.0' do
|
2014-01-04 20:12:01 +01:00
|
|
|
xml.channel do
|
2023-05-12 13:01:12 +02:00
|
|
|
xml.title FoodsoftConfig[:name] + ' Wiki'
|
|
|
|
xml.description ''
|
2014-01-04 20:12:01 +01:00
|
|
|
xml.link FoodsoftConfig[:homepage]
|
|
|
|
|
|
|
|
for page in @pages
|
|
|
|
xml.item do
|
|
|
|
xml.title page.title
|
2023-05-12 13:01:12 +02:00
|
|
|
xml.description page.diff, type: 'html'
|
2014-09-22 11:02:45 +02:00
|
|
|
xml.author User.find_by_id(page.updated_by).try(:display)
|
2023-05-12 13:01:12 +02:00
|
|
|
xml.pubDate page.updated_at.to_fs(:rfc822)
|
2014-01-04 20:12:01 +01:00
|
|
|
xml.link wiki_page_path(page.permalink)
|
|
|
|
xml.guid page.updated_at.to_i
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-09-22 11:02:45 +02:00
|
|
|
end
|