2007-03-12 20:59:02 +03:00
|
|
|
<% if @statuses.empty? or rows.empty? %>
|
|
|
|
<p><i><%=l(:label_no_data)%></i></p>
|
|
|
|
<% else %>
|
|
|
|
<% col_width = 70 / (@statuses.length+3) %>
|
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
|
|
|
<th style="width:25%"></th>
|
|
|
|
<% for status in @statuses %>
|
2011-07-30 12:35:43 +04:00
|
|
|
<th style="width:<%= col_width %>%"><%=h status.name %></th>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
|
|
|
|
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
|
|
|
|
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<% for row in rows %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2011-07-30 12:35:43 +04:00
|
|
|
<td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
2010-01-08 00:12:16 +03:00
|
|
|
:subproject_id => '!*',
|
2007-03-12 20:59:02 +03:00
|
|
|
"#{field_name}" => row.id %></td>
|
|
|
|
<% for status in @statuses %>
|
2007-08-13 21:00:59 +04:00
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id },
|
2007-11-05 21:38:42 +03:00
|
|
|
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
2010-01-08 00:12:16 +03:00
|
|
|
:subproject_id => '!*',
|
2007-03-12 20:59:02 +03:00
|
|
|
"status_id" => status.id,
|
|
|
|
"#{field_name}" => row.id %></td>
|
|
|
|
<% end %>
|
2007-08-13 21:00:59 +04:00
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
|
2007-11-05 21:38:42 +03:00
|
|
|
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
2010-01-08 00:12:16 +03:00
|
|
|
:subproject_id => '!*',
|
2007-03-12 20:59:02 +03:00
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "o" %></td>
|
2007-08-13 21:00:59 +04:00
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
|
2007-11-05 21:38:42 +03:00
|
|
|
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
2010-01-08 00:12:16 +03:00
|
|
|
:subproject_id => '!*',
|
2007-03-12 20:59:02 +03:00
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "c" %></td>
|
2007-08-13 21:00:59 +04:00
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id },
|
2007-11-05 21:38:42 +03:00
|
|
|
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
2010-01-08 00:12:16 +03:00
|
|
|
:subproject_id => '!*',
|
2007-03-12 20:59:02 +03:00
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "*" %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<% end
|
2006-10-21 16:57:19 +04:00
|
|
|
reset_cycle %>
|