diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-29 10:23:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-29 10:23:59 +0000 |
commit | c00084b80bdf159d08bf4fd12980b876118e3039 (patch) | |
tree | c8b8d709d1932a98954a09ace14604518a811488 /lib | |
parent | 1f55907f83aa32c9810eedd61d559a666ac091a8 (diff) | |
download | redmine-c00084b80bdf159d08bf4fd12980b876118e3039.tar.gz redmine-c00084b80bdf159d08bf4fd12980b876118e3039.zip |
Display non working days on gantt image according to settings (#2161).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10751 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 27faf0a96..ebc9610f0 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -457,7 +457,7 @@ module Redmine wday = @date_from.cwday (date_to - @date_from + 1).to_i.times do width = zoom - gc.fill(wday == 6 || wday == 7 ? '#eee' : 'white') + gc.fill(non_working_week_days.include?(wday) ? '#eee' : 'white') gc.stroke('#ddd') gc.stroke_width(1) gc.rectangle(left, 2 * header_height, left + width, 2 * header_height + g_height - 1) |