_details.html.erb
53 lines
| 3.2 KiB
| text/plain
|
TextLexer
|
r330 | <% 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 style="width:25%"></th> | ||||
<% for status in @statuses %> | ||||
|
r6207 | <th style="width:<%= col_width %>%"><%=h status.name %></th> | ||
|
r330 | <% end %> | ||
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th> | ||||
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th> | ||||
<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th> | ||||
</tr></thead> | ||||
<tbody> | ||||
<% for row in rows %> | ||||
<tr class="<%= cycle("odd", "even") %>"> | ||||
|
r6222 | <td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | ||
:set_filter => 1, | ||||
|
r3169 | :subproject_id => '!*', | ||
|
r330 | "#{field_name}" => row.id %></td> | ||
<% for status in @statuses %> | ||||
|
r6222 | <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, | ||
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | ||||
:set_filter => 1, | ||||
|
r3169 | :subproject_id => '!*', | ||
|
r6222 | "status_id" => status.id, | ||
|
r330 | "#{field_name}" => row.id %></td> | ||
<% end %> | ||||
|
r626 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, | ||
|
r6222 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | ||
:set_filter => 1, | ||||
|
r3169 | :subproject_id => '!*', | ||
|
r330 | "#{field_name}" => row.id, | ||
"status_id" => "o" %></td> | ||||
|
r626 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, | ||
|
r6222 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | ||
:set_filter => 1, | ||||
|
r3169 | :subproject_id => '!*', | ||
|
r330 | "#{field_name}" => row.id, | ||
"status_id" => "c" %></td> | ||||
|
r626 | <td align="center"><%= aggregate_link data, { field_name => row.id }, | ||
|
r6222 | :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), | ||
:set_filter => 1, | ||||
|
r3169 | :subproject_id => '!*', | ||
|
r330 | "#{field_name}" => row.id, | ||
|
r6222 | "status_id" => "*" %></td> | ||
|
r330 | </tr> | ||
<% end %> | ||||
</tbody> | ||||
</table> | ||||
<% end | ||||
|
r6222 | reset_cycle %> | ||