@@ -1,53 +1,53 | |||||
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 | <% col_width = 70 / (@statuses.length+3) %> |
|
4 | <% col_width = 70 / (@statuses.length+3) %> | |
5 | <table class="list"> |
|
5 | <table class="list"> | |
6 | <thead><tr> |
|
6 | <thead><tr> | |
7 | <th style="width:25%"></th> |
|
7 | <th style="width:25%"></th> | |
8 | <% for status in @statuses %> |
|
8 | <% for status in @statuses %> | |
9 | <th style="width:<%= col_width %>%"><%=h status.name %></th> |
|
9 | <th style="width:<%= col_width %>%"><%=h status.name %></th> | |
10 | <% end %> |
|
10 | <% end %> | |
11 | <th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th> |
|
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> |
|
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> |
|
13 | <th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th> | |
14 | </tr></thead> |
|
14 | </tr></thead> | |
15 | <tbody> |
|
15 | <tbody> | |
16 | <% for row in rows %> |
|
16 | <% for row in rows %> | |
17 | <tr class="<%= cycle("odd", "even") %>"> |
|
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)), |
|
18 | <td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | |
19 |
:set_filter => 1, |
|
19 | :set_filter => 1, | |
20 | :subproject_id => '!*', |
|
20 | :subproject_id => '!*', | |
21 | "#{field_name}" => row.id %></td> |
|
21 | "#{field_name}" => row.id %></td> | |
22 | <% for status in @statuses %> |
|
22 | <% for status in @statuses %> | |
23 |
<td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, |
|
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)), |
|
24 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | |
25 |
:set_filter => 1, |
|
25 | :set_filter => 1, | |
26 | :subproject_id => '!*', |
|
26 | :subproject_id => '!*', | |
27 |
"status_id" => status.id, |
|
27 | "status_id" => status.id, | |
28 | "#{field_name}" => row.id %></td> |
|
28 | "#{field_name}" => row.id %></td> | |
29 | <% end %> |
|
29 | <% end %> | |
30 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, |
|
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)), |
|
31 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | |
32 |
:set_filter => 1, |
|
32 | :set_filter => 1, | |
33 | :subproject_id => '!*', |
|
33 | :subproject_id => '!*', | |
34 | "#{field_name}" => row.id, |
|
34 | "#{field_name}" => row.id, | |
35 | "status_id" => "o" %></td> |
|
35 | "status_id" => "o" %></td> | |
36 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, |
|
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)), |
|
37 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | |
38 |
:set_filter => 1, |
|
38 | :set_filter => 1, | |
39 | :subproject_id => '!*', |
|
39 | :subproject_id => '!*', | |
40 | "#{field_name}" => row.id, |
|
40 | "#{field_name}" => row.id, | |
41 | "status_id" => "c" %></td> |
|
41 | "status_id" => "c" %></td> | |
42 | <td align="center"><%= aggregate_link data, { field_name => row.id }, |
|
42 | <td align="center"><%= aggregate_link data, { field_name => row.id }, | |
43 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
43 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | |
44 |
:set_filter => 1, |
|
44 | :set_filter => 1, | |
45 | :subproject_id => '!*', |
|
45 | :subproject_id => '!*', | |
46 | "#{field_name}" => row.id, |
|
46 | "#{field_name}" => row.id, | |
47 |
"status_id" => "*" %></td> |
|
47 | "status_id" => "*" %></td> | |
48 | </tr> |
|
48 | </tr> | |
49 | <% end %> |
|
49 | <% end %> | |
50 | </tbody> |
|
50 | </tbody> | |
51 | </table> |
|
51 | </table> | |
52 | <% end |
|
52 | <% end | |
53 | reset_cycle %> No newline at end of file |
|
53 | reset_cycle %> |
General Comments 0
You need to be logged in to leave comments.
Login now