-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
49 lines (40 loc) · 1.58 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
require 'redmine'
require 'support_hooks'
require 'support_plugin/support_patch_application_helper'
require 'support_plugin/support_patch_issues_controller'
require 'support_plugin/support_patch_journal'
#require 'support_plugin/support_patch_mailer'
require 'support_plugin/support_patch_mail_handler_controller'
#Dispatcher.to_prepare :tw_support do
# require_dependency 'issue'
# # Guards against including the module multiple time (like in tests)
# # and registering multiple callbacks
# unless Issue.included_modules.include? Trollweb::IssuePatch
# Issue.send(:include, Trollweb::IssuePatch)
# end
#end
SUPPORT_ROOT = RAILS_ROOT + "/vendor/plugins/support"
Redmine::Plugin.register :support do
name 'Support plugin'
author 'Kurt Inge Småda / Reid Vandewiee'
description 'Helpdesk & Support plugin'
version '0.0.2'
settings :default => {
'api_key' => 'secret',
'mail_header' => 'X-TW',
'replyto' => 'support@host.com',
'tracker' => 'support',
'login_user' => 'support',
'homedir_path' => '/u',
'signature_file' => '.signature',
'auto_newreply' => 'false',
'comp_status' => 'Closed',
'revisit_status' => 'Feedback',
'tags_field' => 'Flags',
}, :partial => 'settings/support_settings'
project_module :support do
permission :disable_support_cc, { :support => :index, :supportmail => :index }, :require => :member
permission :view_support_issue, { :supportmail => :index }, :require => :member
end
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :support => ["support"]
end