forked from ichizok/projects_tree_view
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.rb
24 lines (20 loc) · 782 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 'projects_tree_view_projects_helper_patch'
# Patches to the Redmine core.
Rails.configuration.to_prepare do
require_dependency 'projects_helper'
ProjectsHelper.send(:include, ProjectsTreeView::ProjectsHelperPatch)
end
Redmine::Plugin.register :projects_tree_view do
name 'Projects Tree View plugin'
author 'Chris Peterson and Github community'
description 'This is a Redmine plugin which will turn the projects page into a tree view'
url 'https://github.com/cforce/projects_tree_view'
version '0.0.8'
requires_redmine :version_or_higher => '2.1.0'
settings :default => {
'show_project_description' => true ,
'show_project_progress' => true ,
'show_project_date' => true ,
}, :partial => 'settings/project_tree_settings'
end