##// END OF EJS Templates
fixed a bug in gantt display when last day is a monday...
Jean-Philippe Lang -
r111:1a90fbee8b5f
parent child
Show More
@@ -66,11 +66,11 if show_weeks
66 66 pdf.Cell(width + 1, height, "", "LTR")
67 67 left = left + width+1
68 68 end
69 while week_f < @date_to
69 while week_f <= @date_to
70 70 width = (week_f + 6 <= @date_to) ? 7 * zoom : (@date_to - week_f + 1) * zoom
71 71 pdf.SetY(y_start + header_heigth)
72 72 pdf.SetX(left)
73 pdf.Cell(width, height, week_f.cweek.to_s, "LTR", 0, "C")
73 pdf.Cell(width, height, (width >= 5 ? week_f.cweek.to_s : ""), "LTR", 0, "C")
74 74 left = left + width
75 75 week_f = week_f+7
76 76 end
@@ -42,6 +42,7
42 42 border-bottom: 1px solid #c0c0c0;
43 43 border-right: 1px solid #c0c0c0;
44 44 text-align: center;
45 overflow: hidden;
45 46 }
46 47
47 48 .task {
@@ -102,7 +103,7 t_height = g_height + headers_heigth
102 103 top = headers_heigth + 8
103 104 @issues.each do |i| %>
104 105 <div style="position: absolute;line-height:1em;height:16px;top:<%= top %>px;left:4px;width:<%= subject_width - 5 %>px;overflow:hidden;">
105 <small><%= link_to "#{i.tracker.name} ##{i.id}", :controller => 'issues', :action => 'show', :id => i %>:
106 <small><%= link_to "#{i.tracker.name} ##{i.id}", { :controller => 'issues', :action => 'show', :id => i }, :title => "#{i.subject}" %>:
106 107 <%=h i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %></small>
107 108 </div>
108 109 <% top = top + 20
@@ -151,11 +152,11 if show_weeks
151 152 left = left + width+1
152 153 end %>
153 154 <%
154 while week_f < @date_to
155 while week_f <= @date_to
155 156 width = (week_f + 6 <= @date_to) ? 7 * zoom -1 : (@date_to - week_f + 1) * zoom-1
156 157 %>
157 158 <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="m_bg">
158 <small><%= week_f.cweek %></small>
159 <small><%= week_f.cweek if width >= 16 %></small>
159 160 </div>
160 161 <%
161 162 left = left + width+1
General Comments 0
You need to be logged in to leave comments. Login now