forked from alex-msk/AgileDwarf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
39 lines (33 loc) · 1.53 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
require 'redmine'
require 'scrum_enabled_module_patch'
Redmine::Plugin.register :AgileDwarf do
name 'Agile dwarf plugin'
author 'Mark Ablovacky'
description 'Agile for Redmine'
version '0.0.4.tsdv'
url ''
settings :default => {
:tracker => 1,
:activity => 1,
:stclosed => 1,
:stcolumn1 => 1,
:stcolumn2 => 2,
:stcolumn3 => 3,
:stcolumn4 => 1,
:stcolumn5 => 2,
}, :partial => 'shared/settings'
project_module :scrum do
permission :sprints, {:adsprints => [:list], :adtaskinl => [:update, :inplace, :create, :tooltip], :adsprintinl => [:create, :inplace]}
permission :sprints_tasks, {:adtasks => [:list], :adtaskinl => [:update, :inplace, :tooltip, :spent]}
permission :burndown_charts, {:adburndown => [:show]}
end
menu :project_menu, :adtasks, { :controller => 'adtasks', :action => 'list' }, :caption => :label_menu_mytasks, :after => :activity, :param => :project_id
menu :project_menu, :adsprints, { :controller => 'adsprints', :action => 'list' }, :caption => :label_menu_sprints, :after => :adtasks, :param => :project_id
menu :project_menu, :adburndown, { :controller => 'adburndown', :action => 'show' }, :caption => :label_menu_burndown, :after => :adsprints, :param => :project_id
menu :top_menu, :admytasks, {:controller=>'admytasks',:action=>'list'}, :caption=>:label_my_tasks_board
ActiveSupport::Reloader.to_prepare do
unless EnabledModule.included_modules.include?(EnabledModulePatch)
EnabledModule.send(:prepend, EnabledModulePatch)
end
end
end