ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged...
[gitredmine.git] / app / views / issues / changes.rxml
blobf1aa5d2066659abdc9ccc175d5a0f422bf9e7f68
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((@changes.first ? @changes.first.event_datetime : Time.now).xmlschema)
8   xml.author  { xml.name "#{Setting.app_title}" }
9   @changes.each do |change|
10     issue = change.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, :journal_id => change, :only_path => false)
15       xml.updated change.created_on.xmlschema
16       xml.author do
17         xml.name change.user.name
18         xml.email(change.user.mail)
19       end
20       xml.content "type" => "html" do
21         xml.text! '<ul>'
22         change.details.each do |detail|
23           xml.text! '<li>' + show_detail(detail, false) + '</li>'
24         end
25         xml.text! '</ul>'
26         xml.text! textilizable(change.notes) unless change.notes.blank?
27       end
28     end
29   end
30 end