diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-08 03:21:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-08 03:21:17 +0000 |
commit | ad4ee1c8d842284080e25e9c3317737c93d92a4f (patch) | |
tree | 7fee2cf5517361ecf5dba8896bcc9b1362021bb1 /app/views/gantts | |
parent | d4fc347a8aaed8b4a8228c025f20bdf96a8a6a1e (diff) | |
download | redmine-ad4ee1c8d842284080e25e9c3317737c93d92a4f.tar.gz redmine-ad4ee1c8d842284080e25e9c3317737c93d92a4f.zip |
gantt: code layout cleanup html weeks headers
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10325 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/gantts')
-rw-r--r-- | app/views/gantts/show.html.erb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index d9a291795..2034b8401 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -136,20 +136,16 @@ %> <% end %> -<% -# -# Weeks headers -# -%> +<% ###### Weeks headers ###### %> <% if show_weeks %> <% - left = 0 - height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height) + left = 0 + height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height) %> <% if @gantt.date_from.cwday == 1 %> <% - # @date_from is monday - week_f = @gantt.date_from + # @date_from is monday + week_f = @gantt.date_from %> <% else %> <% @@ -183,8 +179,8 @@ <% end %> <% end %> <% - left = left + width + 1 - week_f = week_f + 7 + left = left + width + 1 + week_f = week_f + 7 %> <% end %> <% end %> |