Revision 1298:4f746d8966dd app/views/reports

View differences:

app/views/reports/_details.html.erb
15 15
<tbody>
16 16
<% for row in rows %>
17 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>
18
  <td><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
22 19
  <% 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>
20
    <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
29 21
  <% 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>
22
  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
23
  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
24
  <td align="center"><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
48 25
</tr>
49 26
<% end %>
50 27
</tbody>
app/views/reports/_simple.html.erb
11 11
<tbody>
12 12
<% for row in rows %>
13 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>
14
  <td><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
15
  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
16
  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
17
  <td align="center"><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
36 18
</tr>
37 19
<% end %>
38 20
</tbody>
app/views/reports/issue_report.html.erb
1 1
<h2><%=l(:label_report_plural)%></h2>
2 2

  
3 3
<div class="splitcontentleft">
4
<h3><%=l(:field_tracker)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'tracker' %></h3>
4
<h3><%=l(:field_tracker)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'tracker') %></h3>
5 5
<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %>
6 6
<br />
7
<h3><%=l(:field_priority)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'priority' %></h3>
7
<h3><%=l(:field_priority)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'priority') %></h3>
8 8
<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %>
9 9
<br />
10
<h3><%=l(:field_assigned_to)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'assigned_to' %></h3>
10
<h3><%=l(:field_assigned_to)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'assigned_to') %></h3>
11 11
<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %>
12 12
<br />
13
<h3><%=l(:field_author)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'author' %></h3>
13
<h3><%=l(:field_author)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'author') %></h3>
14 14
<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %>
15 15
<br />
16 16
<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %>
17 17
</div>
18 18

  
19 19
<div class="splitcontentright">
20
<h3><%=l(:field_version)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'version' %></h3>
20
<h3><%=l(:field_version)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'version') %></h3>
21 21
<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %>
22 22
<br />
23 23
<% if @project.children.any? %>
24
<h3><%=l(:field_subproject)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'subproject' %></h3>
24
<h3><%=l(:field_subproject)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'subproject') %></h3>
25 25
<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %>
26 26
<br />
27 27
<% end %>
28
<h3><%=l(:field_category)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), :action => 'issue_report_details', :detail => 'category' %></h3>
28
<h3><%=l(:field_category)%>&nbsp;&nbsp;<%= link_to image_tag('zoom_in.png'), project_issues_report_details_path(@project, :detail => 'category') %></h3>
29 29
<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %>
30 30
<br />
31 31
<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %>
app/views/reports/issue_report_details.html.erb
3 3
<h3><%=@report_title%></h3>
4 4
<%= render :partial => 'details', :locals => { :data => @data, :field_name => @field, :rows => @rows } %>
5 5
<br />
6
<%= link_to l(:button_back), :action => 'issue_report' %>
6
<%= link_to l(:button_back), project_issues_report_path(@project) %>
7 7

  

Also available in: Unified diff