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 %>
|
|
|
|
<th style="text-align:left;width:<%= col_width %>%"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th>
|
|
|
|
<% 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") %>">
|
2007-04-03 23:48:49 +04:00
|
|
|
<td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
|
|
|
"#{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-04-03 23:48:49 +04:00
|
|
|
:controller => 'projects', :action => 'list_issues', :id => ((row.is_a?(Project) ? row : @project)),
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
|
|
|
"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-04-03 23:48:49 +04:00
|
|
|
:controller => 'projects', :action => 'list_issues', :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-04-03 23:48:49 +04:00
|
|
|
:controller => 'projects', :action => 'list_issues', :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-04-03 23:48:49 +04:00
|
|
|
:controller => 'projects', :action => 'list_issues', :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-21 16:57:19 +04:00
|
|
|
reset_cycle %>
|