Mercurial > hg > soundsoftware-site
comparison app/controllers/.svn/text-base/gantts_controller.rb.svn-base @ 1:cca12e1c1fd4
* Update to Redmine trunk (SVN revisions 3860-3892)
author | Chris Cannam |
---|---|
date | Wed, 28 Jul 2010 12:08:28 +0100 |
parents | 513646585e45 |
children | 1d32c0a0efbf |
comparison
equal
deleted
inserted
replaced
0:513646585e45 | 1:cca12e1c1fd4 |
---|---|
35 | 35 |
36 basename = (@project ? "#{@project.identifier}-" : '') + 'gantt' | 36 basename = (@project ? "#{@project.identifier}-" : '') + 'gantt' |
37 | 37 |
38 respond_to do |format| | 38 respond_to do |format| |
39 format.html { render :action => "show", :layout => !request.xhr? } | 39 format.html { render :action => "show", :layout => !request.xhr? } |
40 format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') | 40 format.png { send_data(@gantt.to_image(@project), :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') |
41 format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{basename}.pdf") } | 41 format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{basename}.pdf") } |
42 end | 42 end |
43 end | 43 end |
44 | 44 |
45 end | 45 end |