2 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
3 xml.title "#{Setting.app_title}: #{l(:label_news_latest)}"
4 xml.link "rel" => "self", "href" => url_for(:controller => 'feeds', :action => 'news', :format => 'atom', :only_path => false)
5 xml.link "rel" => "alternate", "href" => url_for(:controller => 'welcome', :only_path => false)
6 xml.id url_for(:controller => 'welcome', :only_path => false)
7 xml.updated CGI.rfc1123_date(@news.first.created_on) if @news.any?
8 xml.author { xml.name "#{Setting.app_title}" }
12 xml.link "rel" => "alternate", "href" => url_for(:controller => 'news' , :action => 'show', :id => news, :only_path => false)
13 xml.id url_for(:controller => 'news' , :action => 'show', :id => news, :only_path => false)
14 xml.updated CGI.rfc1123_date(news.created_on)
15 xml.author { xml.name news.author.name }
16 xml.summary h(news.summary)
17 xml.content "type" => "html" do
18 xml.text! news.description