forked from backlogs/redmine_backlogs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
executable file
·74 lines (62 loc) · 2.32 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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'
Redmine::Plugin.register :redmine_backlogs do
name 'Redmine Backlogs Plugin'
author 'relaxdiego, friflaj'
description 'A plugin for scrum/agile teams'
version 'unstable'
settings :default => { :story_trackers => nil, :task_tracker => nil, :card_spec => nil }, :partial => 'settings/backlogs_settings'
project_module :backlogs do
permission :manage_backlog,
{ :backlogs => [
:wiki_page_edit,
:story_points,
:rename,
:jsvariables,
:reorder,
:sprint_date,
:update ],
:stories => [
:new,
:create,
:update ],
:tasks => [
:update,
:new,
:create ],
:charts => [
:show ]
}
permission :view_backlog,
{ :backlogs => [
:wiki_page,
:noconfig,
:index,
:show,
:select_issues,
:taskboard_cards,
:product_backlog_cards,
:calendar,
:burndown ],
:stories => [ :index ],
:tasks => [ :index ],
:charts => [ :show ]
}
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