forked from simonswine/redmine_password_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
executable file
·31 lines (22 loc) · 928 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
28
29
30
31
# encoding: utf-8
require 'redmine'
Redmine::Plugin.register :redmine_password_tool do
name 'Redmine Password Tool'
author 'Christian Simon'
description 'Integrates password management for Redmine projects'
version '0.0.2'
url 'http://www.former03.de'
settings :partial => 'redmine_password_tool',
:default => {
}
# Menu entry in project's menu
menu :project_menu, :password_instances, { :controller => 'password_instances', :action => 'index' }, :after => :wiki, :param => :project_id
project_module :password_instances do
permission :pt_read, :password_instances => [:index, :show, :data_schema]
permission :pt_modify, :password_instances => [:create, :new, :destroy, :edit, :update]
end
end
# Include plugins javascript
class PasswordToolJavascriptIncludes < Redmine::Hook::ViewListener
render_on :view_layouts_base_html_head, :partial => 'password_tool'
end