summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-08 03:21:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-08 03:21:55 +0000
commitffcf1925e3974e2907aa7baa180bbb2a71952a9d (patch)
treeaa34173524c2ade87d560d77ed11ab0feb755c4d /app/views
parentad4ee1c8d842284080e25e9c3317737c93d92a4f (diff)
downloadredmine-ffcf1925e3974e2907aa7baa180bbb2a71952a9d.tar.gz
redmine-ffcf1925e3974e2907aa7baa180bbb2a71952a9d.zip
gantt: code layout cleanup html days headers
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10326 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/gantts/show.html.erb18
1 files changed, 7 insertions, 11 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb
index 2034b8401..1c4b40046 100644
--- a/app/views/gantts/show.html.erb
+++ b/app/views/gantts/show.html.erb
@@ -185,16 +185,12 @@
<% end %>
<% end %>
-<%
-#
-# Days headers
-#
-%>
+<% ###### Days headers ####### %>
<% if show_days %>
<%
- left = 0
- height = g_height + header_heigth - 1
- wday = @gantt.date_from.cwday
+ left = 0
+ height = g_height + header_heigth - 1
+ wday = @gantt.date_from.cwday
%>
<% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %>
<%
@@ -211,9 +207,9 @@
<%= day_letter(wday) %>
<% end %>
<%
- left = left + width + 1
- wday = wday + 1
- wday = 1 if wday > 7
+ left = left + width + 1
+ wday = wday + 1
+ wday = 1 if wday > 7
%>
<% end %>
<% end %>