Mercurial > hg > soundsoftware-site
comparison app/views/gantts/show.html.erb @ 119:8661b858af72
* Update to Redmine trunk rev 4705
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 14:12:06 +0000 |
parents | 94944d00e43c |
children | 051f544170fe |
comparison
equal
deleted
inserted
replaced
39:150ceac17a8d | 119:8661b858af72 |
---|---|
57 end | 57 end |
58 end | 58 end |
59 | 59 |
60 # Width of the entire chart | 60 # Width of the entire chart |
61 g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom | 61 g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom |
62 # Collect the number of issues on Versions | 62 |
63 @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width) | |
64 | |
63 g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max | 65 g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max |
64 t_height = g_height + headers_height | 66 t_height = g_height + headers_height |
67 | |
68 | |
65 %> | 69 %> |
70 | |
71 <% if @gantt.truncated %> | |
72 <p class="warning"><%= l(:notice_gantt_chart_truncated, :max => @gantt.max_rows) %></p> | |
73 <% end %> | |
74 | |
66 <table width="100%" style="border:0; border-collapse: collapse;"> | 75 <table width="100%" style="border:0; border-collapse: collapse;"> |
67 <tr> | 76 <tr> |
68 <td style="width:<%= subject_width %>px; padding:0px;"> | 77 <td style="width:<%= subject_width %>px; padding:0px;"> |
69 | 78 |
70 <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> | 79 <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> |
71 <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div> | 80 <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div> |
72 <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div> | 81 <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div> |
73 <% top = headers_height + 8 %> | |
74 | 82 |
75 <%= @gantt.subjects(:headers_height => headers_height, :top => top, :g_width => g_width) %> | 83 <div class="gantt_subjects"> |
84 <%= @gantt.subjects %> | |
85 </div> | |
76 | 86 |
77 </div> | 87 </div> |
78 </td> | 88 </td> |
79 <td> | 89 <td> |
80 | 90 |
149 wday = wday + 1 | 159 wday = wday + 1 |
150 wday = 1 if wday > 7 | 160 wday = 1 if wday > 7 |
151 end | 161 end |
152 end %> | 162 end %> |
153 | 163 |
154 <% top = headers_height + 10 %> | 164 <%= @gantt.lines %> |
155 | |
156 <%= @gantt.lines(:top => top, :zoom => zoom, :g_width => g_width ) %> | |
157 | 165 |
158 <% | 166 <% |
159 # | 167 # |
160 # Today red line (excluded from cache) | 168 # Today red line (excluded from cache) |
161 # | 169 # |