forked from ergoserv/redmine-progressive-projects-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
33 lines (30 loc) · 1.23 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
unless File.basename(File.dirname(__FILE__)) == 'progressive_projects_list'
raise "Progressive Project List plugin directory should be 'progressive_projects_list' instead of '#{File.basename(File.dirname(__FILE__))}'"
end
Redmine::Plugin.register :progressive_projects_list do
name 'Progressive Projects List plugin'
author 'Dmitry Babenko'
description 'Projects List with menus and progress bars.'
version '0.3.0'
url 'http://stgeneral.github.com/redmine-progressive-projects-list/'
author_url 'https://github.com/stgeneral'
settings :default => {
'show_project_description' => false,
'show_project_progress' => true,
'show_project_menu' => false,
'show_project_progress_overview' => ''
}, :partial => 'settings/progressive_projects_list'
end
if Rails::VERSION::MAJOR >= 3
require 'progressive_projects_list'
require 'progressive/projects_helper_patch'
require 'progressive/projects_list_view_listener'
else
# Rails 2.x (ChiliProject) compatibility
require 'dispatcher'
Dispatcher.to_prepare :progressive_projects_list do
require_dependency 'progressive_projects_list'
require_dependency 'progressive/projects_helper_patch'
require_dependency 'progressive/application_helper_patch'
end
end