<%= 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 %> <% if display_sums? %> <% caching_issue(issue) %> <%# Check if we are at the end of a group or the end of a page %> <% if @query.grouped? %> <% if !next_in_same_group? or issue == issues.last %> "> <% @query.columns.each do |column| %> <% end %> <% end %> <% end %> <%# Check if we are at the end of a page %> <% if issue == issues.last %> "> <% @query.columns.each do |column| %> <% end %> <% end %> <% 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 %>
<% column_content = column_content(@query.group_by_column, issue).to_s %> <%= l(:label_sum_for, :value => (column_content.empty? ? 'None' : column_content)) %> <%= mapping_for(column).call(grouped_sum_of(column)) %>
<%= l(:label_sum_for, :value => l(:label_all_issues)) %><%= mapping_for(column).call(total_sum_of(column)) %>
<% end -%>