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/init.rb

52 lines
1.7 KiB

15 years ago
require 'redmine'
require 'dispatcher'
require 'query_patch'
require 'issue_patch'
Dispatcher.to_prepare do
require_dependency 'version'
require_dependency 'issue'
require_dependency 'issue_relation'
Issue::SAFE_ATTRIBUTES << "story_points" if Issue.const_defined? "SAFE_ATTRIBUTES"
Issue::SAFE_ATTRIBUTES << "remaining_hours" if Issue.const_defined? "SAFE_ATTRIBUTES"
Query.send(:include, QueryPatch) unless Query.included_modules.include? QueryPatch
Issue.send(:include, IssuePatch) unless Issue.included_modules.include? IssuePatch
end
15 years ago
require_dependency 'backlogs_layout_hooks'
Redmine::Plugin.register :redmine_backlogs do
name 'Redmine Scrum Plugin'
author 'Mark Maglana, friflaj'
15 years ago
description 'Scrum plugin for Redmine'
version '2.1 unstable'
15 years ago
settings :default => { :story_trackers => nil, :task_tracker => nil }, :partial => 'settings/backlogs_settings'
15 years ago
project_module :backlogs do
permission :manage_backlog,
{ :backlogs => [ :wiki_page,
:wiki_page_edit,
:story_points,
:rename,
:noconfig,
:jsvariables,
:index,
:reorder,
:sprint_date,
:select_sprint ],
:stories => [ :index,
:create,
:update ]
}
15 years ago
end
menu :project_menu, :backlogs, { :controller => 'backlogs', :action => 'index' }, :caption => 'Backlog', :after => :issues, :param => :project_id
end