diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-17 20:01:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-17 20:01:15 +0000 |
commit | 062a2d6f5d6ebdc74d5586cb151fd07a219b1b31 (patch) | |
tree | dd1ed26471c73532688ec74ed72e1eaeeb8a47f7 /app/controllers/timelog_controller.rb | |
parent | d991e46f122d084c9465073256e7750b24898d49 (diff) | |
download | redmine-062a2d6f5d6ebdc74d5586cb151fd07a219b1b31.tar.gz redmine-062a2d6f5d6ebdc74d5586cb151fd07a219b1b31.zip |
Adds atom feed on time entries details (#1479).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1560 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 29c2635d6..2b763129e 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -154,6 +154,14 @@ class TimelogController < ApplicationController render :layout => !request.xhr? } + format.atom { + entries = TimeEntry.find(:all, + :include => [:project, :activity, :user, {:issue => :tracker}], + :conditions => cond.conditions, + :order => "#{TimeEntry.table_name}.created_on DESC", + :limit => Setting.feeds_limit.to_i) + render_feed(entries, :title => l(:label_spent_time)) + } format.csv { # Export all entries @entries = TimeEntry.find(:all, |