@@ -347,10 +347,12 class IssuesController < ApplicationController | |||
|
347 | 347 | @gantt.events = events |
|
348 | 348 | end |
|
349 | 349 | |
|
350 | basename = (@project ? "#{@project.identifier}-" : '') + 'gantt' | |
|
351 | ||
|
350 | 352 | respond_to do |format| |
|
351 | 353 | format.html { render :template => "issues/gantt.rhtml", :layout => !request.xhr? } |
|
352 |
format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{ |
|
|
353 |
format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{ |
|
|
354 | format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') | |
|
355 | format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{basename}.pdf") } | |
|
354 | 356 | end |
|
355 | 357 | end |
|
356 | 358 |
General Comments 0
You need to be logged in to leave comments.
Login now