Patch #3229 ยป redmine-0.8.3-global-gantt-png.patch
| ./app/controllers/issues_controller.rb 2009-04-24 01:57:40.000000000 +0900 | ||
|---|---|---|
|
@gantt.events = events
|
||
|
end
|
||
|
|
||
|
if @project.nil?
|
||
|
basename = ''
|
||
|
else
|
||
|
basename = "#{@project.identifier}-"
|
||
|
end
|
||
|
respond_to do |format|
|
||
|
format.html { render :template => "issues/gantt.rhtml", :layout => !request.xhr? }
|
||
|
format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{@project.identifier}-gantt.png") } if @gantt.respond_to?('to_image')
|
||
|
format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{@project.nil? ? '' : "#{@project.identifier}-" }gantt.pdf") }
|
||
|
format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{basename}gantt.png") } if @gantt.respond_to?('to_image')
|
||
|
format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{basename}gantt.pdf") }
|
||
|
end
|
||
|
end
|
||
|
|
||