@@ -1,28 +1,28 | |||
|
1 | 1 | xml.instruct! |
|
2 | 2 | xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do |
|
3 | 3 | xml.title @title |
|
4 | 4 | xml.link "rel" => "self", "href" => url_for(:controller => 'feeds', :action => 'history', :format => 'atom', :only_path => false) |
|
5 | 5 | xml.link "rel" => "alternate", "href" => url_for(:controller => 'welcome', :only_path => false) |
|
6 | 6 | xml.id url_for(:controller => 'welcome', :only_path => false) |
|
7 | 7 | xml.updated CGI.rfc1123_date(@journals.first.created_on) if @journals.any? |
|
8 | 8 | xml.author { xml.name "#{Setting.app_title}" } |
|
9 | 9 | @journals.each do |journal| |
|
10 | 10 | issue = journal.issue |
|
11 | 11 | xml.entry do |
|
12 | 12 | xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" |
|
13 | 13 | xml.link "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false) |
|
14 | 14 | xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false) |
|
15 | 15 | xml.updated CGI.rfc1123_date(journal.created_on) |
|
16 | 16 | xml.author { xml.name journal.user.name } |
|
17 | 17 | xml.summary journal.notes |
|
18 | 18 | xml.content "type" => "html" do |
|
19 | xml.text! journal.notes | |
|
19 | xml.text! journal.notes if journal.notes | |
|
20 | 20 | xml.text! "<ul>" |
|
21 | 21 | journal.details.each do |detail| |
|
22 | 22 | xml.text! "<li>" + show_detail(detail, false) + "</li>" |
|
23 | 23 | end |
|
24 | 24 | xml.text! "</ul>" |
|
25 | 25 | end |
|
26 | 26 | end |
|
27 | 27 | end |
|
28 | 28 | end No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now