Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/app/views/gantts/show.html.erb Fri Nov 19 14:05:24 2010 +0000 +++ b/app/views/gantts/show.html.erb Thu Jan 13 14:12:06 2011 +0000 @@ -59,10 +59,19 @@ # Width of the entire chart g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom -# Collect the number of issues on Versions + +@gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width) + g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max t_height = g_height + headers_height + + %> + +<% if @gantt.truncated %> + <p class="warning"><%= l(:notice_gantt_chart_truncated, :max => @gantt.max_rows) %></p> +<% end %> + <table width="100%" style="border:0; border-collapse: collapse;"> <tr> <td style="width:<%= subject_width %>px; padding:0px;"> @@ -70,9 +79,10 @@ <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div> <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div> -<% top = headers_height + 8 %> -<%= @gantt.subjects(:headers_height => headers_height, :top => top, :g_width => g_width) %> +<div class="gantt_subjects"> +<%= @gantt.subjects %> +</div> </div> </td> @@ -151,9 +161,7 @@ end end %> -<% top = headers_height + 10 %> - -<%= @gantt.lines(:top => top, :zoom => zoom, :g_width => g_width ) %> +<%= @gantt.lines %> <% #