forked from fanzai0403/status_button
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.rb
More file actions
24 lines (21 loc) · 731 Bytes
/
init.rb
File metadata and controls
24 lines (21 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'redmine'
require_dependency 'issues_status_hook'
Redmine::Plugin.register :status_button do
name 'Redmine Status Button plugin'
author 'Zhang Fan'
description 'Change the issues status by just one click.'
version '0.1.0'
url 'http://web.4399.com'
author_url 'mailto:zhangfan@4399.net'
requires_redmine :version_or_higher => '2.0.0'
settings :default => {
:status_assigned_to => {},
:check_all_status => false,
:add_watcher => true
}, :partial => 'settings/status_button_settings'
end
module StatusButton
class Hooks < Redmine::Hook::ViewListener
render_on :view_issues_show_details_bottom, :partial => 'issues/status_button'
end
end