-
Notifications
You must be signed in to change notification settings - Fork 48
/
init.rb
49 lines (42 loc) · 2.08 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
# encoding: UTF-8
# This plugin should be reloaded in development mode.
if (Rails.env == "development")
ActiveSupport::Dependencies.autoload_once_paths.reject!{|x| x =~ /^#{Regexp.escape(File.dirname(__FILE__))}/}
end
require "redmine"
require "rubygems"
require "gravatar"
ApplicationHelper.send(:include, AdvancedRoadmap::ApplicationHelperPatch)
CalendarsController.send(:include, AdvancedRoadmap::CalendarsControllerPatch)
Issue.send(:include, AdvancedRoadmap::IssuePatch)
Journal.send(:include, AdvancedRoadmap::JournalPatch)
Project.send(:include, AdvancedRoadmap::ProjectPatch)
ProjectsHelper.send(:include, AdvancedRoadmap::ProjectsHelperPatch)
Query.send(:include, AdvancedRoadmap::QueryPatch)
Redmine::Helpers::Gantt.send(:include, AdvancedRoadmap::RedmineHelpersGanttPatch)
Redmine::I18n.send(:include, AdvancedRoadmap::RedmineI18nPatch)
Version.send(:include, AdvancedRoadmap::VersionPatch)
VersionsController.send(:include, AdvancedRoadmap::VersionsControllerPatch)
require_dependency "advanced_roadmap/view_hooks"
Redmine::Plugin.register :advanced_roadmap_v2 do
name "Advanced roadmap & milestones plugin"
url "https://github.com/ekylibre/redmine_advanced_roadmap_v2"
author "Michel LOISELEUR"
author_url "https://github.com/Coren"
description "This is a plugin for Redmine that is used to show more information inside the Roadmap page and implements the milestones featuring."
version "2.4.3"
permission :manage_milestones, {:milestones => [:new, :create, :edit, :update, :destroy]}
requires_redmine :version_or_higher => "2.1.2"
project_module :issue_tracking do
permission :view_issue_estimated_hours, {}
end
settings :default => {"show_due_time" => "false",
"solved_issues_to_estimate" => "5",
"ratio_good" => "0.8",
"color_good" => "green",
"ratio_bad" => "1.2",
"color_bad" => "orange",
"ratio_very_bad" => "1.5",
"color_very_bad" => "red"},
:partial => "settings/advanced_roadmap_settings"
end