@@ -1,30 +1,30 | |||
|
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(:format => 'atom', :key => User.current.rss_key, :only_path => false) |
|
5 | 5 | xml.link "rel" => "alternate", "href" => home_url(:only_path => false) |
|
6 | 6 | xml.id url_for(:controller => 'welcome', :only_path => false) |
|
7 | 7 | xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) |
|
8 | 8 | xml.author { xml.name "#{Setting.app_title}" } |
|
9 | 9 | @journals.each do |change| |
|
10 | 10 | issue = change.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, :journal_id => change, :only_path => false) |
|
15 | 15 | xml.updated change.created_on.xmlschema |
|
16 | 16 | xml.author do |
|
17 | 17 | xml.name change.user.name |
|
18 | 18 | xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail |
|
19 | 19 | end |
|
20 | 20 | xml.content "type" => "html" do |
|
21 | 21 | xml.text! '<ul>' |
|
22 | 22 | change.details.each do |detail| |
|
23 | 23 | xml.text! '<li>' + show_detail(detail, false) + '</li>' |
|
24 | 24 | end |
|
25 | 25 | xml.text! '</ul>' |
|
26 | 26 | xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? |
|
27 | 27 | end |
|
28 | 28 | end |
|
29 | 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