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 / app / views / reports / _details.html.erb @ 1298:4f746d8966dd

History | View | Annotate | Download (1.47 KB)

1 0:513646585e45 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 909:cbb26bc654de Chris
<th style="width:<%= col_width %>%"><%=h status.name %></th>
10 0:513646585e45 Chris
<% 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 1295:622f24f53b42 Chris
  <td><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
19 0:513646585e45 Chris
  <% for status in @statuses %>
20 1295:622f24f53b42 Chris
    <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 0:513646585e45 Chris
  <% end %>
22 1295:622f24f53b42 Chris
  <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 0:513646585e45 Chris
</tr>
26
<% end %>
27
</tbody>
28
</table>
29
<% end
30 909:cbb26bc654de Chris
  reset_cycle %>