diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-25 23:32:39 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-25 23:32:39 +0000 |
commit | d1d86408224e2d6731a88928d42e4ef9effc82a9 (patch) | |
tree | 26a22e8a7cade03ca0333d6d961fd91b31c65842 /app/views/issues | |
parent | 49c2f316c2a253f23aa57c412620c1c6c6432b5f (diff) | |
download | redmine-d1d86408224e2d6731a88928d42e4ef9effc82a9.tar.gz redmine-d1d86408224e2d6731a88928d42e4ef9effc82a9.zip |
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
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/_list.html.erb | 27 |
1 files 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 %> <div class="autoscroll"> <table class="list issues"> - <thead><tr> - <th class="checkbox hide-when-print"><%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(this); return false;', - :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> - </th> - <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> - <% query.columns.each do |column| %> - <%= column_header(column) %> - <% end %> - </tr></thead> + <thead> + <tr> + <th class="checkbox hide-when-print"> + <%= link_to image_tag('toggle_check.png'), {}, + :onclick => 'toggleIssuesSelection(this); return false;', + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> + </th> + <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> + <% query.columns.each do |column| %> + <%= column_header(column) %> + <% end %> + </tr> + </thead> <% previous_group = false %> <tbody> <% issue_list(issues) do |issue, level| -%> @@ -20,7 +24,8 @@ <td colspan="<%= query.columns.size + 2 %>"> <span class="expander" onclick="toggleRowGroup(this);"> </span> <%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> <span class="count">(<%= @issue_count_by_group[group] %>)</span> - <%= 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') %> </td> </tr> <% previous_group = group %> @@ -28,7 +33,7 @@ <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td> <td class="id"><%= link_to issue.id, issue_path(issue) %></td> - <%= raw query.columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %> + <%= raw query.columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %> </tr> <% end -%> </tbody> |