forked from jbbarth/redmine_reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
24 lines (20 loc) · 756 Bytes
/
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
require 'redmine'
require 'reports_plugin/hooks/view_layouts_base_html_head'
ActionDispatch::Callbacks.to_prepare do
require_dependency 'reports_plugin/macros'
end
Redmine::Plugin.register :redmine_reports do
author 'Jean-Baptiste BARTH'
description 'Add ability to display some graph/reports on wiki formatted areas'
url 'http://github.com/jbbarth/redmine_reports'
author_url 'mailto:[email protected]'
version '0.2'
requires_redmine :version_or_higher => '2.1.0'
settings :default => {
'graph_size_x' => "450",
'graph_size_y' => "300",
}, :partial => 'settings/reports_settings'
end
Redmine::MenuManager.map :admin_menu do |menu|
menu.push :graphs, {:controller => :graphs}, :caption => :label_graph_plural
end