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

81 lines
2.5 KiB

15 years ago
require 'redmine'
require 'dispatcher'
Dispatcher.to_prepare do
require_dependency 'issue'
Issue::SAFE_ATTRIBUTES << "story_points" if Issue.const_defined? "SAFE_ATTRIBUTES"
Issue::SAFE_ATTRIBUTES << "remaining_hours" if Issue.const_defined? "SAFE_ATTRIBUTES"
Issue::SAFE_ATTRIBUTES << "position" if Issue.const_defined? "SAFE_ATTRIBUTES"
require_dependency 'backlogs_query_patch'
require_dependency 'backlogs_issue_patch'
require_dependency 'backlogs_version_patch'
require_dependency 'backlogs_project_patch'
require_dependency 'backlogs_user_patch'
require_dependency 'backlogs_my_controller_patch'
end
require_dependency 'backlogs_hooks'
15 years ago
Redmine::Plugin.register :redmine_backlogs do
name 'Redmine Backlogs Plugin'
author 'relaxdiego, friflaj'
description 'A plugin for scrum/agile teams'
version 'unstable'
15 years ago
settings :default => { :story_trackers => nil, :task_tracker => nil, :card_spec => nil }, :partial => 'settings/backlogs_settings'
15 years ago
project_module :backlogs do
permission :manage_backlog,
{ :backlogs => [
:wiki_page_edit,
:story_points,
:rename,
:jsvariables,
:reorder,
:sprint_date,
14 years ago
:index,
:update ],
15 years ago
:stories => [
:new,
:create,
:update ],
:tasks => [
:update,
:new,
:create ],
:charts => [
14 years ago
:show ],
:server_variables => [
:index]
}
permission :view_backlog,
{ :backlogs => [
:wiki_page,
:noconfig,
:index,
:show,
:select_issues,
:taskboard_cards,
:product_backlog_cards,
:calendar,
:burndown ],
:stories => [ :index ],
:tasks => [ :index ],
14 years ago
:charts => [ :show ],
:server_variables => [
:index]
}
permission :view_statistics, { :backlogs_global => [ :statistics ] }
end
menu :project_menu, :backlogs, { :controller => 'backlogs', :action => 'index' }, :caption => :label_backlogs, :after => :issues, :param => :project_id
menu :application_menu, :backlogs, { :controller => 'backlogs_global', :action => 'statistics'}, :caption => :label_scrum_statistics
end