-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
30 lines (23 loc) · 1.22 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
require 'redmine'
::Rails.logger.info 'Starting Surveys Notifier plugin...'
require_dependency 'updates_notifier_issue_change_listener'
Redmine::Plugin.register :redmine_surveys_notifier do
name 'Redmine Surveys Notifier plugin'
author 'Airen Zaldivar'
description 'This plugin allows to send a survey when a support issue is closed.'
version '0.0.1'
url 'https://github.com/airenzp/redmine_surveys_notifier'
author_url 'https://nbis.se/about/staff/airen-zaldivar/'
survey_html = " <p>
Thank you for using NBIS support recently. To help us improve we kindly ask that you fill out this short,
~10 minute, anonymous survey:<br><br>
<a href='https://nbis.typeform.com/to/dBChMV'><button style='background-color:#4CAF50; border:none; color:white;padding: 12px 32px;text-decoration: none;font-size: 16px;'>
Take me to the survey!</button></a>
<br><br>
If someone else was the main contact with NBIS for your project, please feel free to get their input on any question where applicable.
</p>
<p>Thanks in advance and have a nice day!</p>
"
default_settings = {'survey_html' => survey_html}
settings :default => default_settings, :partial => 'settings/plugin_redmine_surveys_notifier_settings'
end