To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 1a / 1ab88c9db51ca0f94d552b61bcc13c4bd5d1f921.svn-base @ 1298:4f746d8966dd

History | View | Annotate | Download (1.47 KB)

1 1295:622f24f53b42 Chris
<% if @statuses.empty? or rows.empty? %>
2
    <p><i><%=l(:label_no_data)%></i></p>
3
<% else %>
4
<% col_width = 70 / (@statuses.length+3) %>
5
<table class="list">
6
<thead><tr>
7
<th style="width:25%"></th>
8
<% for status in @statuses %>
9
<th style="width:<%= col_width %>%"><%=h status.name %></th>
10
<% end %>
11
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
12
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
13
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
14
</tr></thead>
15
<tbody>
16
<% for row in rows %>
17
<tr class="<%= cycle("odd", "even") %>">
18
  <td><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
19
  <% for status in @statuses %>
20
    <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>
21
  <% end %>
22
  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
23
  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
24
  <td align="center"><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
25
</tr>
26
<% end %>
27
</tbody>
28
</table>
29
<% end
30
  reset_cycle %>