diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-29 10:21:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-29 10:21:00 +0000 |
commit | 1f55907f83aa32c9810eedd61d559a666ac091a8 (patch) | |
tree | fb41a3a4eeaf5c992273b52c43d86e525c8ded73 /app/views/gantts | |
parent | 5fe4aae7ba627d80f877a5fc126fe059691edd31 (diff) | |
download | redmine-1f55907f83aa32c9810eedd61d559a666ac091a8.tar.gz redmine-1f55907f83aa32c9810eedd61d559a666ac091a8.zip |
Display non working days on gantt according to settings (#2161).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10750 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/gantts')
-rw-r--r-- | app/views/gantts/show.html.erb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 1c4b40046..0cebd0a65 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -201,9 +201,10 @@ style += "width: #{width}px;" style += "height: #{height}px;" style += "font-size:0.7em;" - style += 'background:#f1f1f1;' if wday > 5 + clss = "gantt_hdr" + clss << " nwday" if @gantt.non_working_week_days.include?(wday) %> - <%= content_tag(:div, :style => style, :class => "gantt_hdr") do %> + <%= content_tag(:div, :style => style, :class => clss) do %> <%= day_letter(wday) %> <% end %> <% |