_simple.rhtml
36 lines
| 2.1 KiB
| text/html+ruby
|
RhtmlLexer
|
r330 | <% if @statuses.empty? or rows.empty? %> | |
<p><i><%=l(:label_no_data)%></i></p> | |||
<% else %> | |||
<table class="list"> | |||
<thead><tr> | |||
<th style="width:25%"></th> | |||
<th align="center" style="width:25%"><%=l(:label_open_issues_plural)%></th> | |||
<th align="center" style="width:25%"><%=l(:label_closed_issues_plural)%></th> | |||
<th align="center" style="width:25%"><%=l(:label_total)%></th> | |||
</tr></thead> | |||
<tbody> | |||
<% for row in rows %> | |||
<tr class="<%= cycle("odd", "even") %>"> | |||
|
r407 | <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => ((row.is_a?(Project) ? row : @project)), | |
|
r330 | :set_filter => 1, | |
"#{field_name}" => row.id %></td> | |||
|
r626 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, | |
|
r407 | :controller => 'projects', :action => 'list_issues', :id => ((row.is_a?(Project) ? row : @project)), | |
|
r330 | :set_filter => 1, | |
"#{field_name}" => row.id, | |||
"status_id" => "o" %></td> | |||
|
r626 | <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, | |
|
r407 | :controller => 'projects', :action => 'list_issues', :id => ((row.is_a?(Project) ? row : @project)), | |
|
r330 | :set_filter => 1, | |
"#{field_name}" => row.id, | |||
"status_id" => "c" %></td> | |||
|
r626 | <td align="center"><%= aggregate_link data, { field_name => row.id }, | |
|
r407 | :controller => 'projects', :action => 'list_issues', :id => ((row.is_a?(Project) ? row : @project)), | |
|
r330 | :set_filter => 1, | |
"#{field_name}" => row.id, | |||
"status_id" => "*" %></td> | |||
</tr> | |||
<% end %> | |||
</tbody> | |||
</table> | |||
<% end | |||
|
r29 | reset_cycle %> |