2006-12-26 19:19:12 +03:00
|
|
|
xml.instruct!
|
|
|
|
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
|
|
|
|
xml.channel do
|
2007-01-21 15:31:16 +03:00
|
|
|
xml.title "#{Setting.app_title}: #{l(:label_news_latest)}"
|
2007-01-25 21:27:42 +03:00
|
|
|
xml.link url_for(:controller => 'welcome', :only_path => false)
|
2007-03-15 22:20:49 +03:00
|
|
|
xml.pubDate CGI.rfc1123_date(@news.first ? @news.first.created_on : Time.now)
|
2007-01-21 14:50:22 +03:00
|
|
|
xml.description l(:label_news_latest)
|
2006-12-26 19:19:12 +03:00
|
|
|
@news.each do |news|
|
|
|
|
xml.item do
|
|
|
|
xml.title "#{news.project.name}: #{news.title}"
|
|
|
|
news_url = url_for(:controller => 'news' , :action => 'show', :id => news, :only_path => false)
|
|
|
|
xml.link news_url
|
|
|
|
xml.description h(news.summary)
|
|
|
|
xml.pubDate CGI.rfc1123_date(news.created_on)
|
|
|
|
xml.guid news_url
|
|
|
|
xml.author h(news.author.name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|