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 %>
<%
overflow: hidden;
}
+.gantt_hdr.nwday {background-color:#f1f1f1;}
+
.gantt_subjects { font-size: 0.8em; }
.gantt_subjects div { line-height:16px;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; }