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