-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.rb
40 lines (34 loc) · 1.11 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
require 'redmine'
require_dependency 'redmine_issue_model_patch'
require_dependency 'redmine_im_link_hook'
require_dependency 'redmine_im_link_watchers_patch'
Redmine::Plugin.register :redmine_im_link do
name 'Redmine Im Link'
author 'Matthew Paul'
description 'Adds link per watcher to call skype/slack/msteams'
version '1.0.3'
url 'https://github.com/MatthewPaulGithub/redmine_im_link'
author_url 'https://github.com/MatthewPaulGithub'
settings :default =>
{
:addwatchers => true,
:showpeople => false,
:footerhtml => '',
:popupwindowsize => '1100,600',
:linkname => 'Skype',
:linkcf => '',
:linkurl => 'sip:%email%',
:linktype => '1',
:includestring => 'domain1.com',
:excludestring => '[email protected]',
:linkname2 => 'Slack',
:linkcf2 => '',
:linkurl2 => 'slack://open',
:linktype2 => '1',
:includestring2 => '[email protected]',
:excludestring2 => 'Include All'
},
:partial => 'redmine_im_link/settings'
permission :view_im_links, :redmine_im_link => :view_im_links
permission :view_im_link_footer, :redmine_im_link => :view_im_link_footer
end