From d1d86408224e2d6731a88928d42e4ef9effc82a9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 25 Sep 2012 23:32:39 +0000 Subject: [PATCH] code layout cleanup app/views/issues/_list.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10470 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_list.html.erb | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index 59f596452..e7748834e 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -2,15 +2,19 @@ <%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
- - - <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> - <% query.columns.each do |column| %> - <%= column_header(column) %> - <% end %> - + + + + <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> + <% query.columns.each do |column| %> + <%= column_header(column) %> + <% end %> + + <% previous_group = false %> <% issue_list(issues) do |issue, level| -%> @@ -20,7 +24,8 @@ <% previous_group = group %> @@ -28,7 +33,7 @@ "> - <%= raw query.columns.map {|column| ""}.join %> + <%= raw query.columns.map {|column| ""}.join %> <% end -%> -- 2.39.5
<%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(this); return false;', - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> -
+ <%= link_to image_tag('toggle_check.png'), {}, + :onclick => 'toggleIssuesSelection(this); return false;', + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> +
  <%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> (<%= @issue_count_by_group[group] %>) - <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %> + <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", + "toggleAllRowGroups(this)", :class => 'toggle-all') %>
<%= check_box_tag("ids[]", issue.id, false, :id => nil) %> <%= link_to issue.id, issue_path(issue) %>#{column_content(column, issue)}#{column_content(column, issue)}