diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-17 15:18:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-17 15:18:50 +0000 |
commit | 10cf1ccc1abe1c6ffdf21259b54292f9068b569c (patch) | |
tree | d43c2fd622b2126f72672d177f482e4934106e3d /app/controllers/projects_controller.rb | |
parent | 22b42dc90a86b16904224bf638054fffd062b53f (diff) | |
download | redmine-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/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index fe4836811..61b772194 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -575,6 +575,11 @@ class ProjectsController < ApplicationController end end + def feeds + @queries = @project.queries.find :all, :conditions => ["is_public=? or user_id=?", true, (logged_in_user ? logged_in_user.id : 0)] + @key = logged_in_user.get_or_create_rss_key.value if logged_in_user + end + private # Find project of id params[:id] # if not found, redirect to project list |