2006-07-30 20:19:35 +04:00
|
|
|
<% if @statuses.empty? or rows.empty? %>
|
|
|
|
<p><i><%=l(:label_no_data)%></i></p>
|
|
|
|
<% else %>
|
2006-12-24 19:35:25 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
|
|
|
<th width="25%"></th>
|
|
|
|
<th align="center" width="25%"><%=l(:label_open_issues_plural)%></th>
|
|
|
|
<th align="center" width="25%"><%=l(:label_closed_issues_plural)%></th>
|
|
|
|
<th align="center" width="25%"><%=l(:label_total)%></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% 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,
|
2006-12-16 16:37:32 +03:00
|
|
|
"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,
|
2006-12-16 16:37:32 +03:00
|
|
|
"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,
|
2006-12-16 16:37:32 +03:00
|
|
|
"status_id" => "*" %></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
</tr>
|
2006-12-24 19:35:25 +03:00
|
|
|
<% end %>
|
|
|
|
</tbody>
|
2006-07-30 20:19:35 +04:00
|
|
|
</table>
|
2006-10-15 13:00:05 +04:00
|
|
|
<% end
|
|
|
|
reset_cycle %>
|