2006-07-30 20:19:35 +04:00
|
|
|
<% if @statuses.empty? or rows.empty? %>
|
|
|
|
<p><i><%=l(:label_no_data)%></i></p>
|
|
|
|
<% else %>
|
2006-10-21 16:57:19 +04:00
|
|
|
<table class="reportTableContent">
|
2006-06-28 22:11:03 +04:00
|
|
|
<tr>
|
|
|
|
<td width="25%"></td>
|
2006-10-21 16:57:19 +04:00
|
|
|
<td align="center" width="25%"><%=l(:label_open_issues_plural)%></td>
|
|
|
|
<td align="center" width="25%"><%=l(:label_closed_issues_plural)%></td>
|
|
|
|
<td align="center" width="25%"><%=l(:label_total)%></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% for row in rows %>
|
2006-10-15 13:00:05 +04:00
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2006-06-28 22:11:03 +04:00
|
|
|
<td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
|
|
|
|
:set_filter => 1,
|
2006-07-03 23:38:10 +04:00
|
|
|
"#{field_name}" => row.id %></td>
|
|
|
|
<td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 0 }),
|
|
|
|
:controller => 'projects', :action => 'list_issues', :id => @project,
|
|
|
|
:set_filter => 1,
|
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "O" %></td>
|
2006-07-30 20:19:35 +04:00
|
|
|
<td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 1 }),
|
|
|
|
:controller => 'projects', :action => 'list_issues', :id => @project,
|
|
|
|
:set_filter => 1,
|
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "C" %></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
<td align="center"><%= link_to (aggregate data, { field_name => row.id }),
|
|
|
|
:controller => 'projects', :action => 'list_issues', :id => @project,
|
|
|
|
:set_filter => 1,
|
2006-07-03 23:38:10 +04:00
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "A" %></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|
|
|
|
</tr>
|
2006-07-30 20:19:35 +04:00
|
|
|
</table>
|
2006-10-15 13:00:05 +04:00
|
|
|
<% end
|
|
|
|
reset_cycle %>
|