--- app/controllers/issues_controller.rb.bak 2009-07-17 15:38:27.000000000 -0400
+++ app/controllers/issues_controller.rb 2009-07-17 15:40:58.000000000 -0400
@@ -53,6 +53,7 @@
respond_to do |format|
format.html { }
format.atom { }
+ format.xml { }
format.csv { limit = Setting.issues_export_limit.to_i }
format.pdf { limit = Setting.issues_export_limit.to_i }
end
@@ -77,6 +78,7 @@
render :template => 'issues/index.rhtml', :layout => !request.xhr?
}
format.atom { render_feed(@issues, :title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}") }
+ format.xml { render :xml => @issues }
format.csv { send_data(issues_to_csv(@issues, @project).read, :type => 'text/csv; header=present', :filename => 'export.csv') }
format.pdf { send_data(issues_to_pdf(@issues, @project, @query), :type => 'application/pdf', :filename => 'export.pdf') }
end
@@ -118,6 +120,7 @@
respond_to do |format|
format.html { render :template => 'issues/show.rhtml' }
format.atom { render :action => 'changes', :layout => false, :content_type => 'application/atom+xml' }
+ format.xml { render :xml => @issue }
format.pdf { send_data(issue_to_pdf(@issue), :type => 'application/pdf', :filename => "#{@project.identifier}-#{@issue.id}.pdf") }
end
end