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") %>">
|
2012-12-23 19:55:57 +04:00
|
|
|
<td><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% for status in @statuses %>
|
2012-12-23 19:55:57 +04:00
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2012-12-23 19:55:57 +04:00
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
|
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
|
|
|
|
<td align="center"><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<% end
|
2011-08-02 16:40:20 +04:00
|
|
|
reset_cycle %>
|