summaryrefslogtreecommitdiffstats
path: root/app/views/reports/issue_report.html.erb
blob: 4368b86e6cfeba3d6d76f7628a933c2b8fcc3227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<h2><%=l(:label_report_plural)%></h2>

<div class="splitcontent">
<div class="splitcontentleft">
<h3>
  <%=l(:field_tracker)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'tracker'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %>
<br />
<h3>
  <%=l(:field_priority)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'priority'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %>
<br />
<h3>
  <%=l(:field_assigned_to)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'assigned_to'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_assigned_to, :field_name => "assigned_to_id", :rows => @assignees } %>
<br />
<h3>
  <%=l(:field_author)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'author'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %>
<br />
<%= call_hook(:view_reports_issue_report_split_content_left, :project => @project) %>
</div>

<div class="splitcontentright">
<h3>
  <%=l(:field_version)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'version'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %>
<br />
<% if @project.children.any? %>
<h3>
  <%=l(:field_subproject)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'subproject'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %>
<br />
<% end %>
<h3>
  <%=l(:field_category)%>&nbsp;
  <%= link_to sprite_icon('zoom-in', l(:label_details)),
              project_issues_report_details_path(@project, :detail => 'category'),
              :class => 'icon-only icon-zoom-in',
              :title => l(:label_details) %>
</h3>
<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %>
<br />
<%= call_hook(:view_reports_issue_report_split_content_right, :project => @project) %>
</div>
</div>