<% form_tag({}) do -%> <%= hidden_field_tag 'back_url', url_for(params) %>
<%= 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| -%> <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> <% reset_cycle %> <% previous_group = group %> <% end %> "> <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %> <%= call_hook(:issue_list_group_bottom, :current_issue => issue, :issues => issues, :query => @query, :group => group) %> <% end -%>
<%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", :alt => "#{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') %>
<%= check_box_tag("ids[]", issue.id, false, :id => "issue#{issue.id}") %> <% if parent_issue = issue.parent_issue_id %> <%=l(:description_subissue) + ' ' + l(:label_issue) + ' #' + parent_issue.to_s %> <% end -%> <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
<% end -%>