CSV export added to timelog report (#1009).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1338 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-04-07 17:18:09 +00:00
parent fc1a295d8a
commit 5d34548539
4 changed files with 73 additions and 2 deletions
+4 -1
View File
@@ -112,7 +112,10 @@ class TimelogController < ApplicationController
end
end
render :layout => false if request.xhr?
respond_to do |format|
format.html { render :layout => !request.xhr? }
format.csv { send_data(report_to_csv(@criterias, @periods, @hours).read, :type => 'text/csv; header=present', :filename => 'timelog.csv') }
end
end
def details