-
Notifications
You must be signed in to change notification settings - Fork 8
/
init.rb
28 lines (24 loc) · 936 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
25
26
27
28
require 'redmine'
require 'reports_plugin/hooks/view_layouts_base_html_head'
ActiveSupport::Reloader.to_prepare do
require_dependency 'reports_plugin/macros'
end
Redmine::Plugin.register :redmine_reports do
name 'Redmine Reports plugin'
description 'Add ability to display some graph/reports on wiki formatted areas'
url 'https://github.com/jbbarth/redmine_reports'
author 'Jean-Baptiste BARTH'
author_url 'mailto:[email protected]'
version '0.2'
requires_redmine :version_or_higher => '2.1.0'
requires_redmine_plugin :redmine_base_rspec, :version_or_higher => '0.0.3' if Rails.env.test?
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,
:html => {:class => 'icon'}
end