To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / reports / _details.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (3.17 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 | 909:cbb26bc654de | Chris | <td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
| 19 | :set_filter => 1,
|
||
| 20 | 0:513646585e45 | Chris | :subproject_id => '!*',
|
| 21 | "#{field_name}" => row.id %></td> |
||
| 22 | <% for status in @statuses %>
|
||
| 23 | 909:cbb26bc654de | Chris | <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, |
| 24 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
||
| 25 | :set_filter => 1,
|
||
| 26 | 0:513646585e45 | Chris | :subproject_id => '!*',
|
| 27 | 909:cbb26bc654de | Chris | "status_id" => status.id,
|
| 28 | 0:513646585e45 | Chris | "#{field_name}" => row.id %></td> |
| 29 | <% end %>
|
||
| 30 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, |
||
| 31 | 909:cbb26bc654de | Chris | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
| 32 | :set_filter => 1,
|
||
| 33 | 0:513646585e45 | Chris | :subproject_id => '!*',
|
| 34 | "#{field_name}" => row.id,
|
||
| 35 | "status_id" => "o" %></td> |
||
| 36 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, |
||
| 37 | 909:cbb26bc654de | Chris | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
| 38 | :set_filter => 1,
|
||
| 39 | 0:513646585e45 | Chris | :subproject_id => '!*',
|
| 40 | "#{field_name}" => row.id,
|
||
| 41 | "status_id" => "c" %></td> |
||
| 42 | <td align="center"><%= aggregate_link data, { field_name => row.id }, |
||
| 43 | 909:cbb26bc654de | Chris | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
|
| 44 | :set_filter => 1,
|
||
| 45 | 0:513646585e45 | Chris | :subproject_id => '!*',
|
| 46 | "#{field_name}" => row.id,
|
||
| 47 | 909:cbb26bc654de | Chris | "status_id" => "*" %></td> |
| 48 | 0:513646585e45 | Chris | </tr>
|
| 49 | <% end %>
|
||
| 50 | </tbody>
|
||
| 51 | </table>
|
||
| 52 | <% end
|
||
| 53 | 909:cbb26bc654de | Chris | reset_cycle %> |