Mercurial > hg > soundsoftware-site
comparison app/views/reports/.svn/text-base/_details.rhtml.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
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 %>%"><%= 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 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 %> |