-
Notifications
You must be signed in to change notification settings - Fork 37
/
init.rb
25 lines (22 loc) · 837 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
require 'redmine'
require 'dispatcher'
require 'issues_controller_patch'
Dispatcher.to_prepare :issue_hot_buttons do
IssuesController.send(:include, IssuesControllerPatch)
end
class Hooks < Redmine::Hook::ViewListener
render_on :view_issues_show_details_bottom,
:partial => 'assets',
:layout => false
end
unless Redmine::Plugin.registered_plugins.keys.include?(:issue_hot_buttons)
Redmine::Plugin.register :issue_hot_buttons do
name 'Issue Hot Buttons Plugin'
author 'Mike Kolganov, Thumbtack Inc.'
description 'Plugin for Redmine that add buttons for often used actions to issue page'
version '0.4.2'
url 'https://github.com/mikekolganov/redmine-issue-hot-buttons'
#author_url 'mailto:[email protected]'
settings :partial => 'settings/hot_buttons_settings'
end
end