summaryrefslogtreecommitdiffstats
path: root/app/views/feeds/issues_atom.rxml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-17 15:18:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-17 15:18:50 +0000
commit10cf1ccc1abe1c6ffdf21259b54292f9068b569c (patch)
treed43c2fd622b2126f72672d177f482e4934106e3d /app/views/feeds/issues_atom.rxml
parent22b42dc90a86b16904224bf638054fffd062b53f (diff)
downloadredmine-10cf1ccc1abe1c6ffdf21259b54292f9068b569c.tar.gz
redmine-10cf1ccc1abe1c6ffdf21259b54292f9068b569c.zip
added rss/atom feeds at project levels for:
* news * new issues reported * details of issue changes issue cutom queries can be used as feeds git-svn-id: http://redmine.rubyforge.org/svn/trunk@339 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/feeds/issues_atom.rxml')
-rw-r--r--app/views/feeds/issues_atom.rxml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/feeds/issues_atom.rxml b/app/views/feeds/issues_atom.rxml
new file mode 100644
index 000000000..bb15fc493
--- /dev/null
+++ b/app/views/feeds/issues_atom.rxml
@@ -0,0 +1,22 @@
+xml.instruct!
+xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
+ xml.title @title
+ xml.link "rel" => "self", "href" => url_for(:controller => 'feeds', :action => 'issues', :format => 'atom', :only_path => false)
+ xml.link "rel" => "alternate", "href" => url_for(:controller => 'welcome', :only_path => false)
+ xml.id url_for(:controller => 'welcome', :only_path => false)
+ xml.updated CGI.rfc1123_date(@issues.first.updated_on) if @issues.any?
+ xml.author { xml.name "#{Setting.app_title}" }
+ @issues.each do |issue|
+ xml.entry do
+ xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}"
+ xml.link "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false)
+ xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false)
+ xml.updated CGI.rfc1123_date(issue.updated_on)
+ xml.author { xml.name issue.author.name }
+ xml.summary issue.description
+ xml.content "type" => "html" do
+ xml.text! issue.description
+ end
+ end
+ end
+end \ No newline at end of file