ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged...
[gitredmine.git] / app / views / feeds / news_atom.rxml
blob2550341c83c6ee48103678fc164edbe66c50557b
1 xml.instruct!
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}" }
9   @news.each do |news|
10     xml.entry do
11       xml.title   news.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
19       end
20     end
21   end
22 end