diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 00:08:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 00:08:46 +0000 |
commit | 3bbb2566c8277c75771d594a6b8c46628815412c (patch) | |
tree | efd3490c81ad1470fad258db4c1545612c171434 /lib/redmine/helpers | |
parent | 8cfec7ddf5c0a44be5850dd31d3cea517a730616 (diff) | |
download | redmine-3bbb2566c8277c75771d594a6b8c46628815412c.tar.gz redmine-3bbb2566c8277c75771d594a6b8c46628815412c.zip |
gantt: code layout cleanup pdf_task method of lib/redmine/helpers/gantt.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10351 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 0e389f8fd..d73a92ec0 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -737,20 +737,20 @@ module Redmine height = options[:height] || 2 # Renders the task bar, with progress and late if coords[:bar_start] && coords[:bar_end] - params[:pdf].SetY(params[:top]+1.5) + params[:pdf].SetY(params[:top] + 1.5) params[:pdf].SetX(params[:subject_width] + coords[:bar_start]) - params[:pdf].SetFillColor(200,200,200) + params[:pdf].SetFillColor(200, 200, 200) params[:pdf].RDMCell(coords[:bar_end] - coords[:bar_start], height, "", 0, 0, "", 1) if coords[:bar_late_end] - params[:pdf].SetY(params[:top]+1.5) + params[:pdf].SetY(params[:top] + 1.5) params[:pdf].SetX(params[:subject_width] + coords[:bar_start]) - params[:pdf].SetFillColor(255,100,100) + params[:pdf].SetFillColor(255, 100, 100) params[:pdf].RDMCell(coords[:bar_late_end] - coords[:bar_start], height, "", 0, 0, "", 1) end if coords[:bar_progress_end] - params[:pdf].SetY(params[:top]+1.5) + params[:pdf].SetY(params[:top] + 1.5) params[:pdf].SetX(params[:subject_width] + coords[:bar_start]) - params[:pdf].SetFillColor(90,200,90) + params[:pdf].SetFillColor(90, 200, 90) params[:pdf].RDMCell(coords[:bar_progress_end] - coords[:bar_start], height, "", 0, 0, "", 1) end end @@ -759,13 +759,13 @@ module Redmine if coords[:start] params[:pdf].SetY(params[:top] + 1) params[:pdf].SetX(params[:subject_width] + coords[:start] - 1) - params[:pdf].SetFillColor(50,50,200) + params[:pdf].SetFillColor(50, 50, 200) params[:pdf].RDMCell(2, 2, "", 0, 0, "", 1) end if coords[:end] params[:pdf].SetY(params[:top] + 1) params[:pdf].SetX(params[:subject_width] + coords[:end] - 1) - params[:pdf].SetFillColor(50,50,200) + params[:pdf].SetFillColor(50, 50, 200) params[:pdf].RDMCell(2, 2, "", 0, 0, "", 1) end end |