@@ -1,30 +1,30 | |||||
1 | xml.instruct! |
|
1 | xml.instruct! | |
2 | xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do |
|
2 | xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |
3 | xml.title @title |
|
3 | xml.title @title | |
4 | xml.link "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false) |
|
4 | xml.link "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false) | |
5 | xml.link "rel" => "alternate", "href" => home_url(:only_path => false) |
|
5 | xml.link "rel" => "alternate", "href" => home_url(:only_path => false) | |
6 | xml.id url_for(:controller => 'welcome', :only_path => false) |
|
6 | xml.id url_for(:controller => 'welcome', :only_path => false) | |
7 | xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) |
|
7 | xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) | |
8 | xml.author { xml.name "#{Setting.app_title}" } |
|
8 | xml.author { xml.name "#{Setting.app_title}" } | |
9 | @journals.each do |change| |
|
9 | @journals.each do |change| | |
10 | issue = change.issue |
|
10 | issue = change.issue | |
11 | xml.entry do |
|
11 | xml.entry do | |
12 | xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" |
|
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) |
|
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) |
|
14 | xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false) | |
15 | xml.updated change.created_on.xmlschema |
|
15 | xml.updated change.created_on.xmlschema | |
16 | xml.author do |
|
16 | xml.author do | |
17 | xml.name change.user.name |
|
17 | xml.name change.user.name | |
18 | xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail |
|
18 | xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail | |
19 | end |
|
19 | end | |
20 | xml.content "type" => "html" do |
|
20 | xml.content "type" => "html" do | |
21 | xml.text! '<ul>' |
|
21 | xml.text! '<ul>' | |
22 | change.details.each do |detail| |
|
22 | change.details.each do |detail| | |
23 | xml.text! '<li>' + show_detail(detail, false) + '</li>' |
|
23 | xml.text! '<li>' + show_detail(detail, false) + '</li>' | |
24 | end |
|
24 | end | |
25 | xml.text! '</ul>' |
|
25 | xml.text! '</ul>' | |
26 | xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? |
|
26 | xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? | |
27 | end |
|
27 | end | |
28 | end |
|
28 | end | |
29 | end |
|
29 | end | |
30 | end No newline at end of file |
|
30 | end |
General Comments 0
You need to be logged in to leave comments.
Login now