OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/controllers/rb_statistics_controller.rb

14 lines
509 B

class RbStatisticsController < ApplicationController
unloadable
before_filter :authorize_global
def show
@projects = EnabledModule.find(:all,
:conditions => ["enabled_modules.name = 'backlogs' and status = ?", Project::STATUS_ACTIVE],
:include => :project,
:joins => :project).collect { |mod| mod.project }
@projects.sort! {|a, b| a.scrum_statistics.score <=> b.scrum_statistics.score}
end
end