<% if statuses.try(:empty?) and rows.try(:empty?) %>

<%=l(:label_no_data)%>

<% else %> <% column_names = statuses.map(&:name) + [l(:label_open_issues_plural), l(:label_closed_issues_plural), l(:label_total)] %> <% col_width = 70 / (column_names.length+3) %> <% column_names.each do |name| %> <% end %> <% for row in rows %> "> <% for status in statuses %> <% end %> <% end %>
<%= name %>
<%= link_to h(row.name), project_issues_path((row.is_a?(Project) ? row : @project), :set_filter => 1, :subproject_id => '!*', "#{field_name}" => row.id) %> <%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, project_issues_path((row.is_a?(Project) ? row : @project), :set_filter => 1, :subproject_id => '!*', "status_id" => status.id, field_name => row.id ) %> <%= aggregate_link data, { field_name => row.id, "closed" => 0 }, project_issues_path((row.is_a?(Project) ? row : @project), :set_filter => 1, :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "o") %> <%= aggregate_link data, { field_name => row.id, "closed" => 1 }, project_issues_path((row.is_a?(Project) ? row : @project), :set_filter => 1, :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "c") %> <%= aggregate_link data, { field_name => row.id }, project_issues_path((row.is_a?(Project) ? row : @project), :set_filter => 1, :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "*") %>
<% end reset_cycle %>