ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged...
[gitredmine.git] / app / views / feeds / history_atom.rxml
blob8c01fe4ed6f82bcc934a0dab38d461f29a51f1e4
1 xml.instruct!
2 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
3   xml.title   @title
4   xml.link    "rel" => "self", "href" => url_for(:controller => 'feeds', :action => 'history', :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(@journals.first.created_on) if @journals.any?
8   xml.author  { xml.name "#{Setting.app_title}" }
9   @journals.each do |journal|
10     issue = journal.issue
11     xml.entry do
12       xml.title   "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}"
13       xml.link    "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false)
14       xml.id      url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false)
15       xml.updated CGI.rfc1123_date(journal.created_on)
16       xml.author  { xml.name journal.user.name }
17       xml.summary journal.notes
18       xml.content "type" => "html" do
19         xml.text! journal.notes if journal.notes
20         xml.text! "<ul>"
21         journal.details.each do |detail|
22           xml.text! "<li>" + show_detail(detail, false) + "</li>"
23         end
24         xml.text! "</ul>"
25       end
26     end
27   end
28 end