summaryrefslogtreecommitdiffstats
path: root/app/views/reports/_details.rhtml
blob: 1d791e0c7631918929b7cb8b7d3c12eb11d3c921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<% 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 width="25%"></th>
<% for status in @statuses %>
<th width="<%= col_width %>%" style="text-align:left;"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th>
<% end %>
<th align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
<th align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
<th align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
</tr></thead>
<tbody>
<% for row in rows %>
<tr class="<%= cycle("odd", "even") %>">
  <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project, 
                                                :set_filter => 1, 
                                                "#{field_name}" => row.id %></td>
  <% for status in @statuses %>
    <td align="center"><%= link_to (aggregate data, { field_name => row.id, "status_id" => status.id }), 
                                                :controller => 'projects', :action => 'list_issues', :id => @project, 
                                                :set_filter => 1, 
                                                "status_id" => status.id, 
                                                "#{field_name}" => row.id %></td>
  <% end %>
  <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 0 }),
                                                :controller => 'projects', :action => 'list_issues', :id => @project, 
                                                :set_filter => 1, 
                                                "#{field_name}" => row.id,
                                                "status_id" => "o" %></td>
  <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 1 }),
                                                :controller => 'projects', :action => 'list_issues', :id => @project, 
                                                :set_filter => 1, 
                                                "#{field_name}" => row.id,
                                                "status_id" => "c" %></td>
  <td align="center"><%= link_to (aggregate data, { field_name => row.id }),
                                                :controller => 'projects', :action => 'list_issues', :id => @project, 
                                                :set_filter => 1, 
                                                "#{field_name}" => row.id,
                                                "status_id" => "*" %></td>  
</tr>
<% end %>
</tbody>
</table>
<% end
  reset_cycle %>