gantt: code layout cleanup html months headers
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10321 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2edb8d597a
commit
eeedd287ad
|
@ -105,15 +105,12 @@ t_height = g_height + headers_height
|
|||
<div style="position:relative;height:<%= t_height + 24 %>px;overflow:auto;">
|
||||
<div style="width:<%= g_width - 1 %>px;height:<%= headers_height %>px;background: #eee;"
|
||||
class="gantt_hdr"> </div>
|
||||
|
||||
<% ###### Months headers ###### %>
|
||||
<%
|
||||
#
|
||||
# Months headers
|
||||
#
|
||||
%>
|
||||
<%
|
||||
month_f = @gantt.date_from
|
||||
left = 0
|
||||
height = (show_weeks ? header_heigth : header_heigth + g_height)
|
||||
month_f = @gantt.date_from
|
||||
left = 0
|
||||
height = (show_weeks ? header_heigth : header_heigth + g_height)
|
||||
%>
|
||||
<% @gantt.months.times do %>
|
||||
<%
|
||||
|
@ -129,8 +126,8 @@ height = (show_weeks ? header_heigth : header_heigth + g_height)
|
|||
:title => "#{month_name(month_f.month)} #{month_f.year}" %>
|
||||
<% end %>
|
||||
<%
|
||||
left = left + width + 1
|
||||
month_f = month_f >> 1
|
||||
left = left + width + 1
|
||||
month_f = month_f >> 1
|
||||
%>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue