@@ -1,29 +1,29 | |||||
1 | <% if @statuses.empty? or rows.empty? %> |
|
1 | <% if @statuses.empty? or rows.empty? %> | |
2 | <p><i><%=l(:label_no_data)%></i></p> |
|
2 | <p><i><%=l(:label_no_data)%></i></p> | |
3 | <% else %> |
|
3 | <% else %> | |
4 | <table class="list issue-report"> |
|
4 | <table class="list issue-report"> | |
5 | <thead><tr> |
|
5 | <thead><tr> | |
6 | <th></th> |
|
6 | <th></th> | |
7 | <% for status in @statuses %> |
|
7 | <% for status in @statuses %> | |
8 | <th><%= status.name %></th> |
|
8 | <th><%= status.name %></th> | |
9 | <% end %> |
|
9 | <% end %> | |
10 | <th><strong><%=l(:label_open_issues_plural)%></strong></th> |
|
10 | <th><strong><%=l(:label_open_issues_plural)%></strong></th> | |
11 | <th><strong><%=l(:label_closed_issues_plural)%></strong></th> |
|
11 | <th><strong><%=l(:label_closed_issues_plural)%></strong></th> | |
12 | <th><strong><%=l(:label_total)%></strong></th> |
|
12 | <th><strong><%=l(:label_total)%></strong></th> | |
13 | </tr></thead> |
|
13 | </tr></thead> | |
14 | <tbody> |
|
14 | <tbody> | |
15 | <% for row in rows %> |
|
15 | <% for row in rows %> | |
16 | <tr class="<%= cycle("odd", "even") %>"> |
|
16 | <tr class="<%= cycle("odd", "even") %>"> | |
17 | <td class="name"><%= row.name %></td> |
|
17 | <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td> | |
18 | <% for status in @statuses %> |
|
18 | <% for status in @statuses %> | |
19 | <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td> |
|
19 | <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td> | |
20 | <% end %> |
|
20 | <% end %> | |
21 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td> |
|
21 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td> | |
22 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td> |
|
22 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td> | |
23 | <td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td> |
|
23 | <td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td> | |
24 | </tr> |
|
24 | </tr> | |
25 | <% end %> |
|
25 | <% end %> | |
26 | </tbody> |
|
26 | </tbody> | |
27 | </table> |
|
27 | </table> | |
28 | <% end |
|
28 | <% end | |
29 | reset_cycle %> |
|
29 | reset_cycle %> |
@@ -1,23 +1,23 | |||||
1 | <% if @statuses.empty? or rows.empty? %> |
|
1 | <% if @statuses.empty? or rows.empty? %> | |
2 | <p><i><%=l(:label_no_data)%></i></p> |
|
2 | <p><i><%=l(:label_no_data)%></i></p> | |
3 | <% else %> |
|
3 | <% else %> | |
4 | <table class="list issue-report"> |
|
4 | <table class="list issue-report"> | |
5 | <thead><tr> |
|
5 | <thead><tr> | |
6 | <th></th> |
|
6 | <th></th> | |
7 | <th><%=l(:label_open_issues_plural)%></th> |
|
7 | <th><%=l(:label_open_issues_plural)%></th> | |
8 | <th><%=l(:label_closed_issues_plural)%></th> |
|
8 | <th><%=l(:label_closed_issues_plural)%></th> | |
9 | <th><%=l(:label_total)%></th> |
|
9 | <th><%=l(:label_total)%></th> | |
10 | </tr></thead> |
|
10 | </tr></thead> | |
11 | <tbody> |
|
11 | <tbody> | |
12 | <% for row in rows %> |
|
12 | <% for row in rows %> | |
13 | <tr class="<%= cycle("odd", "even") %>"> |
|
13 | <tr class="<%= cycle("odd", "even") %>"> | |
14 | <td class="name"><%= row.name %></td> |
|
14 | <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td> | |
15 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td> |
|
15 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td> | |
16 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td> |
|
16 | <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td> | |
17 | <td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td> |
|
17 | <td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td> | |
18 | </tr> |
|
18 | </tr> | |
19 | <% end %> |
|
19 | <% end %> | |
20 | </tbody> |
|
20 | </tbody> | |
21 | </table> |
|
21 | </table> | |
22 | <% end |
|
22 | <% end | |
23 | reset_cycle %> |
|
23 | reset_cycle %> |
General Comments 0
You need to be logged in to leave comments.
Login now