Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/reports/.svn/text-base/_details.rhtml.svn-base Fri Jul 23 15:52:44 2010 +0100 @@ -0,0 +1,53 @@ +<% 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 %> +<th style="width:<%= col_width %>%"><%= status.name %></th> +<% 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") %>"> + <td><%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id %></td> + <% for status in @statuses %> + <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, + :subproject_id => '!*', + "status_id" => status.id, + "#{field_name}" => row.id %></td> + <% end %> + <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "o" %></td> + <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "c" %></td> + <td align="center"><%= aggregate_link data, { field_name => row.id }, + :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), + :set_filter => 1, + :subproject_id => '!*', + "#{field_name}" => row.id, + "status_id" => "*" %></td> +</tr> +<% end %> +</tbody> +</table> +<% end + reset_cycle %> \ No newline at end of file