-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
27 lines (23 loc) · 1006 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
25
26
27
require 'redmine'
Redmine::Plugin.register :workload_statistic_notificator do
name 'Workload Statistic notificator plugin'
author 'Default Value'
description 'Plugin provides functionality for sending workload statistics notifications to Slack'
version '1.0'
author_url 'http://default-value.com/'
url 'https://github.com/DefaultValue/redmine-workload-statistic-notificator'
settings \
:default => {
'slack_url' => 'http://slack.com/callback/',
'slack_icon' => 'https://raw.github.com/sciyoshi/redmine-slack/gh-pages/icon.png',
'daily_working_hours' => '8.0',
'day_statistic_time' => '20:00',
'day_statistic_channel' => 'general',
'day_statistic_enable' => true,
'is_internal_project_attr' => 'Internal project',
},
:partial => 'settings/workload_notificator_settings'
end
ActionDispatch::Reloader.to_prepare do
SettingsHelper.send :include, NotificatorSettingsHelper
end