@@ -49,47 +49,45 class ReportsController < ApplicationController | |||
|
49 | 49 | @rows = @project.trackers |
|
50 | 50 | @data = issues_by_tracker |
|
51 | 51 | @report_title = l(:field_tracker) |
|
52 | render :template => "reports/issue_report_details" | |
|
53 | 52 | when "version" |
|
54 | 53 | @field = "fixed_version_id" |
|
55 | 54 | @rows = @project.shared_versions.sort |
|
56 | 55 | @data = issues_by_version |
|
57 | 56 | @report_title = l(:field_version) |
|
58 | render :template => "reports/issue_report_details" | |
|
59 | 57 | when "priority" |
|
60 | 58 | @field = "priority_id" |
|
61 | 59 | @rows = IssuePriority.all |
|
62 | 60 | @data = issues_by_priority |
|
63 | 61 | @report_title = l(:field_priority) |
|
64 | render :template => "reports/issue_report_details" | |
|
65 | 62 | when "category" |
|
66 | 63 | @field = "category_id" |
|
67 | 64 | @rows = @project.issue_categories |
|
68 | 65 | @data = issues_by_category |
|
69 | 66 | @report_title = l(:field_category) |
|
70 | render :template => "reports/issue_report_details" | |
|
71 | 67 | when "assigned_to" |
|
72 | 68 | @field = "assigned_to_id" |
|
73 | 69 | @rows = @project.members.collect { |m| m.user }.sort |
|
74 | 70 | @data = issues_by_assigned_to |
|
75 | 71 | @report_title = l(:field_assigned_to) |
|
76 | render :template => "reports/issue_report_details" | |
|
77 | 72 | when "author" |
|
78 | 73 | @field = "author_id" |
|
79 | 74 | @rows = @project.members.collect { |m| m.user }.sort |
|
80 | 75 | @data = issues_by_author |
|
81 | 76 | @report_title = l(:field_author) |
|
82 | render :template => "reports/issue_report_details" | |
|
83 | 77 | when "subproject" |
|
84 | 78 | @field = "project_id" |
|
85 | 79 | @rows = @project.descendants.active |
|
86 | 80 | @data = issues_by_subproject |
|
87 | 81 | @report_title = l(:field_subproject) |
|
88 | render :template => "reports/issue_report_details" | |
|
89 | else | |
|
90 | redirect_to :action => 'issue_report', :id => @project | |
|
91 | 82 | end |
|
92 | 83 | |
|
84 | respond_to do |format| | |
|
85 | if @field | |
|
86 | format.html {} | |
|
87 | else | |
|
88 | format.html { redirect_to :action => 'issue_report', :id => @project } | |
|
89 | end | |
|
90 | end | |
|
93 | 91 | end |
|
94 | 92 | private |
|
95 | 93 | def issues_by_tracker |
General Comments 0
You need to be logged in to leave comments.
Login now