Mercurial > hg > soundsoftware-site
comparison app/controllers/reports_controller.rb @ 1338:25603efa57b5
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:14 +0100 |
parents | 433d4f72a19b |
children | 622f24f53b42 |
comparison
equal
deleted
inserted
replaced
1209:1b1138f6f55e | 1338:25603efa57b5 |
---|---|
1 # Redmine - project management software | 1 # Redmine - project management software |
2 # Copyright (C) 2006-2011 Jean-Philippe Lang | 2 # Copyright (C) 2006-2012 Jean-Philippe Lang |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or | 4 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 5 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 6 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 7 # of the License, or (at your option) any later version. |
20 before_filter :find_project, :authorize, :find_issue_statuses | 20 before_filter :find_project, :authorize, :find_issue_statuses |
21 | 21 |
22 def issue_report | 22 def issue_report |
23 @trackers = @project.trackers | 23 @trackers = @project.trackers |
24 @versions = @project.shared_versions.sort | 24 @versions = @project.shared_versions.sort |
25 @priorities = IssuePriority.all | 25 @priorities = IssuePriority.all.reverse |
26 @categories = @project.issue_categories | 26 @categories = @project.issue_categories |
27 @assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sort | 27 @assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sort |
28 @authors = @project.users.sort | 28 @authors = @project.users.sort |
29 @subprojects = @project.descendants.visible | 29 @subprojects = @project.descendants.visible |
30 | 30 |
51 @rows = @project.shared_versions.sort | 51 @rows = @project.shared_versions.sort |
52 @data = Issue.by_version(@project) | 52 @data = Issue.by_version(@project) |
53 @report_title = l(:field_version) | 53 @report_title = l(:field_version) |
54 when "priority" | 54 when "priority" |
55 @field = "priority_id" | 55 @field = "priority_id" |
56 @rows = IssuePriority.all | 56 @rows = IssuePriority.all.reverse |
57 @data = Issue.by_priority(@project) | 57 @data = Issue.by_priority(@project) |
58 @report_title = l(:field_priority) | 58 @report_title = l(:field_priority) |
59 when "category" | 59 when "category" |
60 @field = "category_id" | 60 @field = "category_id" |
61 @rows = @project.issue_categories | 61 @rows = @project.issue_categories |