Revision 912:5e80956cc792 app/views/reports
| app/views/reports/_details.html.erb | ||
|---|---|---|
| 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 %>%"><%=h 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 h(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 %> |
|
| app/views/reports/_details.rhtml | ||
|---|---|---|
| 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 %> |
|
| app/views/reports/_simple.html.erb | ||
|---|---|---|
| 1 |
<% if @statuses.empty? or rows.empty? %> |
|
| 2 |
<p><i><%=l(:label_no_data)%></i></p> |
|
| 3 |
<% else %> |
|
| 4 |
<table class="list"> |
|
| 5 |
<thead><tr> |
|
| 6 |
<th style="width:25%"></th> |
|
| 7 |
<th align="center" style="width:25%"><%=l(:label_open_issues_plural)%></th> |
|
| 8 |
<th align="center" style="width:25%"><%=l(:label_closed_issues_plural)%></th> |
|
| 9 |
<th align="center" style="width:25%"><%=l(:label_total)%></th> |
|
| 10 |
</tr></thead> |
|
| 11 |
<tbody> |
|
| 12 |
<% for row in rows %> |
|
| 13 |
<tr class="<%= cycle("odd", "even") %>">
|
|
| 14 |
<td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
| 15 |
:set_filter => 1, |
|
| 16 |
:subproject_id => '!*', |
|
| 17 |
"#{field_name}" => row.id %></td>
|
|
| 18 |
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
|
|
| 19 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
| 20 |
:set_filter => 1, |
|
| 21 |
:subproject_id => '!*', |
|
| 22 |
"#{field_name}" => row.id,
|
|
| 23 |
"status_id" => "o" %></td> |
|
| 24 |
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
|
|
| 25 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
| 26 |
:set_filter => 1, |
|
| 27 |
:subproject_id => '!*', |
|
| 28 |
"#{field_name}" => row.id,
|
|
| 29 |
"status_id" => "c" %></td> |
|
| 30 |
<td align="center"><%= aggregate_link data, { field_name => row.id },
|
|
| 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" => "*" %></td> |
|
| 36 |
</tr> |
|
| 37 |
<% end %> |
|
| 38 |
</tbody> |
|
| 39 |
</table> |
|
| 40 |
<% end |
|
| 41 |
reset_cycle %> |
|
| app/views/reports/_simple.rhtml | ||
|---|---|---|
| 1 |
<% if @statuses.empty? or rows.empty? %> |
|
| 2 |
<p><i><%=l(:label_no_data)%></i></p> |
|
| 3 |
<% else %> |
|
| 4 |
<table class="list"> |
|
| 5 |
<thead><tr> |
|
| 6 |
<th style="width:25%"></th> |
|
| 7 |
<th align="center" style="width:25%"><%=l(:label_open_issues_plural)%></th> |
|
| 8 |
<th align="center" style="width:25%"><%=l(:label_closed_issues_plural)%></th> |
|
| 9 |
<th align="center" style="width:25%"><%=l(:label_total)%></th> |
|
| 10 |
</tr></thead> |
|
| 11 |
<tbody> |
|
| 12 |
<% for row in rows %> |
|
| 13 |
<tr class="<%= cycle("odd", "even") %>">
|
|
| 14 |
<td><%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
| 15 |
:set_filter => 1, |
|
| 16 |
:subproject_id => '!*', |
|
| 17 |
"#{field_name}" => row.id %></td>
|
|
| 18 |
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
|
|
| 19 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
| 20 |
:set_filter => 1, |
|
| 21 |
:subproject_id => '!*', |
|
| 22 |
"#{field_name}" => row.id,
|
|
| 23 |
"status_id" => "o" %></td> |
|
| 24 |
<td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
|
|
| 25 |
:controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), |
|
| 26 |
:set_filter => 1, |
|
| 27 |
:subproject_id => '!*', |
|
| 28 |
"#{field_name}" => row.id,
|
|
| 29 |
"status_id" => "c" %></td> |
|
| 30 |
<td align="center"><%= aggregate_link data, { field_name => row.id },
|
|
| 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" => "*" %></td> |
|
| 36 |
</tr> |
|
| 37 |
<% end %> |
|
| 38 |
</tbody> |
|
| 39 |
</table> |
|
| 40 |
<% end |
|
| 41 |
reset_cycle %> |
|
| app/views/reports/issue_report.html.erb | ||
|---|---|---|
| 1 |
<h2><%=l(:label_report_plural)%></h2> |
|
| 2 |
|
|
| 3 |
<div class="splitcontentleft"> |
|
| 4 |
<h3><%=l(:field_tracker)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'tracker' %></h3>
|
|
| 5 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %>
|
|
| 6 |
<br /> |
|
| 7 |
<h3><%=l(:field_priority)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'priority' %></h3>
|
|
| 8 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %>
|
|
| 9 |
<br /> |
|
| 10 |
<h3><%=l(:field_assigned_to)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'assigned_to' %></h3>
|
|
| 11 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %>
|
|
| 12 |
<br /> |
|
| 13 |
<h3><%=l(:field_author)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'author' %></h3>
|
|
| 14 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %>
|
|
| 15 |
<br /> |
|
| 16 |
<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %> |
|
| 17 |
</div> |
|
| 18 |
|
|
| 19 |
<div class="splitcontentright"> |
|
| 20 |
<h3><%=l(:field_version)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'version' %></h3>
|
|
| 21 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %>
|
|
| 22 |
<br /> |
|
| 23 |
<% if @project.children.any? %> |
|
| 24 |
<h3><%=l(:field_subproject)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'subproject' %></h3>
|
|
| 25 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %>
|
|
| 26 |
<br /> |
|
| 27 |
<% end %> |
|
| 28 |
<h3><%=l(:field_category)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'category' %></h3>
|
|
| 29 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %>
|
|
| 30 |
<br /> |
|
| 31 |
<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %> |
|
| 32 |
</div> |
|
| 33 |
|
|
| app/views/reports/issue_report.rhtml | ||
|---|---|---|
| 1 |
<h2><%=l(:label_report_plural)%></h2> |
|
| 2 |
|
|
| 3 |
<div class="splitcontentleft"> |
|
| 4 |
<h3><%=l(:field_tracker)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'tracker' %></h3>
|
|
| 5 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %>
|
|
| 6 |
<br /> |
|
| 7 |
<h3><%=l(:field_priority)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'priority' %></h3>
|
|
| 8 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %>
|
|
| 9 |
<br /> |
|
| 10 |
<h3><%=l(:field_assigned_to)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'assigned_to' %></h3>
|
|
| 11 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %>
|
|
| 12 |
<br /> |
|
| 13 |
<h3><%=l(:field_author)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'author' %></h3>
|
|
| 14 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %>
|
|
| 15 |
<br /> |
|
| 16 |
<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %> |
|
| 17 |
</div> |
|
| 18 |
|
|
| 19 |
<div class="splitcontentright"> |
|
| 20 |
<h3><%=l(:field_version)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'version' %></h3>
|
|
| 21 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %>
|
|
| 22 |
<br /> |
|
| 23 |
<% if @project.children.any? %> |
|
| 24 |
<h3><%=l(:field_subproject)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'subproject' %></h3>
|
|
| 25 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %>
|
|
| 26 |
<br /> |
|
| 27 |
<% end %> |
|
| 28 |
<h3><%=l(:field_category)%> <%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'category' %></h3>
|
|
| 29 |
<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %>
|
|
| 30 |
<br /> |
|
| 31 |
<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %> |
|
| 32 |
</div> |
|
| 33 |
|
|
| app/views/reports/issue_report_details.html.erb | ||
|---|---|---|
| 1 |
<h2><%=l(:label_report_plural)%></h2> |
|
| 2 |
|
|
| 3 |
<h3><%=@report_title%></h3> |
|
| 4 |
<%= render :partial => 'details', :locals => { :data => @data, :field_name => @field, :rows => @rows } %>
|
|
| 5 |
<br /> |
|
| 6 |
<%= link_to l(:button_back), :action => 'issue_report' %> |
|
| 7 |
|
|
| app/views/reports/issue_report_details.rhtml | ||
|---|---|---|
| 1 |
<h2><%=l(:label_report_plural)%></h2> |
|
| 2 |
|
|
| 3 |
<h3><%=@report_title%></h3> |
|
| 4 |
<%= render :partial => 'details', :locals => { :data => @data, :field_name => @field, :rows => @rows } %>
|
|
| 5 |
<br /> |
|
| 6 |
<%= link_to l(:button_back), :action => 'issue_report' %> |
|
| 7 |
|
|
Also available in: Unified diff