-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
52 lines (44 loc) · 2.24 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
Redmine::Plugin.register :cosmosys do
name 'Cosmosys plugin'
author 'Txinto Vaz'
description 'This is a plugin for Redmine, which converts it into a CosmoSys instance'
version '0.0.3'
url 'http://cosmobots.eu'
author_url 'http://cosmobots.eu'
# Removing this because of the redmine alphabetical plugin loading process
# requires_redmine_plugin :wiki_graphviz_plugin, :version_or_higher => '0.8.0'
requires_redmine_plugin :computed_custom_field , :version_or_higher => '1.0.7'
requires_redmine_plugin :additionals , :version_or_higher => '2.0.24'
permission :csys_menu, :cosmosys => :menu
permission :csys_tree, :cosmosys => :tree
permission :csys_treeview, :cosmosys => :treeview
permission :csys_treeview_commit, :cosmosys => :treeview_commit
permission :csys_show, :cosmosys => :show
permission :csys_up, :cosmosys => :up
permission :csys_down, :cosmosys => :down
permission :csys_iss_index, :cosmosys_issues => :index
permission :csys_iss_dep_gv, :cosmosys_issues => :dep_gv
permission :csys_iss_hie_gv, :cosmosys_issues => :hie_gv
permission :csys_dep_gv, :cosmosys => :dep_gv
permission :csys_hie_gv, :cosmosys => :hie_gv
menu :project_menu, :cosmosys, {:controller => 'cosmosys', :action => 'menu' }, :caption => 'cosmoSys', :after => :activity, :param => :id
menu :project_menu, :cosmosys_show, {:controller => 'cosmosys', :action => 'show' }, :caption => 'MainReport', :after => :activity, :param => :id
menu :project_menu, :cosmosys_treeview, {:controller => 'cosmosys', :action => 'treeview' }, :caption => 'Tree', :after => :activity, :param => :id
#menu :project_menu, :cosmosys_issues_index, {:controller => 'cosmosys_issues', :action => 'index' }, :caption => 'cSysIssues', :after => :issues, :param => :id
settings :default => {
"report_format"=>"A4",
"report_orientation"=>"Portrait",
}, :partial => 'settings/cosmosys_settings'
require 'cosmosys'
# Patches to the Redmine core.
require 'application_helper_patch'
require 'queries_helper_patch'
require 'issues_helper_patch'
require 'tracker_patch'
require 'user_patch'
require 'project_patch'
require 'version_patch'
require 'issue_patch'
Mime::Type.register "image/svg+xml", :svg
Mime::Type.register 'text/vnd.graphviz', :gv
end