From 9c5f339efb2c256acb69320844bb31b6aceb475a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 7 Sep 2012 01:36:16 +0000 Subject: [PATCH] code layout cleanup app/views/gantts/show.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10309 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/gantts/show.html.erb | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 5b9aaa289..ae6a97236 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -25,8 +25,10 @@ <%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> <%= hidden_field_tag 'zoom', @gantt.zoom %> -<%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> -<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %> +<%= link_to_function l(:button_apply), '$("#query_form").submit()', + :class => 'icon icon-checked' %> +<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, + :class => 'icon icon-reload' %>

<% end %> @@ -72,7 +74,8 @@ t_height = g_height + headers_height
-
+
<%= @gantt.subjects.html_safe %> @@ -83,7 +86,8 @@ t_height = g_height + headers_height
-
 
+
 
<% # # Months headers @@ -95,7 +99,9 @@ height = (show_weeks ? header_heigth : header_heigth + g_height) width = (((month_f >> 1) - month_f) * zoom - 1).to_i %>
- <%= link_to h("#{month_f.year}-#{month_f.month}"), @gantt.params.merge(:year => month_f.year, :month => month_f.month), :title => "#{month_name(month_f.month)} #{month_f.year}"%> + <%= link_to h("#{month_f.year}-#{month_f.month}"), + @gantt.params.merge(:year => month_f.year, :month => month_f.month), + :title => "#{month_name(month_f.month)} #{month_f.year}" %>
<% left = left + width + 1 @@ -117,7 +123,8 @@ if show_weeks week_f = @gantt.date_from + (7 - @gantt.date_from.cwday + 1) width = (7 - @gantt.date_from.cwday + 1) * zoom - 1 %> -
 
+
 
<% left = left + width + 1 end %> @@ -145,7 +152,8 @@ if show_days (@gantt.date_to - @gantt.date_from + 1).to_i.times do width = zoom - 1 %> -
5 %>" class="gantt_hdr"> +
5 %>" + class="gantt_hdr"> <%= day_letter(wday) %>
<% -- 2.39.5