To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / e0 / e024de91ca039f46f93f26d8b35e2dac179b2d3a.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (3.17 KB)
| 1 |
<% 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), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
| 19 |
:set_filter => 1, |
| 20 |
:subproject_id => '!*', |
| 21 |
"#{field_name}" => row.id %></td>
|
| 22 |
<% for status in @statuses %> |
| 23 |
<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 |
:subproject_id => '!*', |
| 27 |
"status_id" => status.id, |
| 28 |
"#{field_name}" => row.id %></td>
|
| 29 |
<% end %> |
| 30 |
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
|
| 31 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
| 32 |
:set_filter => 1, |
| 33 |
: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 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
| 38 |
:set_filter => 1, |
| 39 |
:subproject_id => '!*', |
| 40 |
"#{field_name}" => row.id,
|
| 41 |
"status_id" => "c" %></td> |
| 42 |
<td align="center"><%= aggregate_link data, { field_name => row.id },
|
| 43 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
| 44 |
:set_filter => 1, |
| 45 |
:subproject_id => '!*', |
| 46 |
"#{field_name}" => row.id,
|
| 47 |
"status_id" => "*" %></td> |
| 48 |
</tr> |
| 49 |
<% end %> |
| 50 |
</tbody> |
| 51 |
</table> |
| 52 |
<% end |
| 53 |
reset_cycle %> |