2007-03-12 20:59:02 +03:00
|
|
|
<% if @statuses.empty? or rows.empty? %>
|
|
|
|
<p><i><%=l(:label_no_data)%></i></p>
|
|
|
|
<% else %>
|
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
|
|
|
<th style="width:25%"></th>
|
|
|
|
<th align="center" style="width:25%"><%=l(:label_open_issues_plural)%></th>
|
|
|
|
<th align="center" style="width:25%"><%=l(:label_closed_issues_plural)%></th>
|
|
|
|
<th align="center" style="width:25%"><%=l(:label_total)%></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<% for row in rows %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2007-11-05 21:38:42 +03:00
|
|
|
<td><%= link_to 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,
|
|
|
|
"#{field_name}" => row.id %></td>
|
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,
|
|
|
|
"#{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,
|
|
|
|
"#{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,
|
|
|
|
"#{field_name}" => row.id,
|
|
|
|
"status_id" => "*" %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<% end
|
2006-10-15 13:00:05 +04:00
|
|
|
reset_cycle %>
|