-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.rb
56 lines (50 loc) · 1.63 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
require 'redmine'
require 'gruff'
require 'yaml'
require_dependency "redmine_arrangeable_graph_maker/hooks"
Redmine::Plugin.register :redmine_arrangeable_graph_maker do
name 'Redmine Arrangeable Graph Maker plugin'
author 'Ryuma Tsukano'
description 'チケットを集計したグラフを表示するためのプラグイン'
version '0.0.1'
url 'http://www.ibs.inte.co.jp'
author_url 'http://www.ibs.inte.co.jp'
project_module :arrangeable_graph_maker do
permission :view_graph,
:graph_maker => [:get_trend_graph,
:get_customize_graph,
:get_long_graph,
:get_completion_graph,
:show_long,
:show_trend,
:show_customize,
:show_completion]
end
# menu :project_menu,
# :long_graph,
# { :controller => 'graph_maker',
# :action => 'show_long' },
# :after => :calendar,
# :param => :project_id
#
# menu :project_menu,
# :completion_graph,
# { :controller => 'graph_maker',
# :action => 'show_completion'},
# :after => :calendar,
# :param => :project_id
#
# menu :project_menu,
# :customize_graph,
# { :controller => 'graph_maker',
# :action => 'show_customize'},
# :after => :calendar,
# :param => :project_id
#
# menu :project_menu,
# :trend_graph,
# { :controller => 'graph_maker',
# :action => 'show_trend' },
# :after => :calendar,
# :param => :project_id
end