-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinit.rb
More file actions
29 lines (25 loc) · 937 Bytes
/
init.rb
File metadata and controls
29 lines (25 loc) · 937 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
25
26
27
28
29
require 'redmine'
Redmine::Plugin.register :redmine_traceability do
Rails.configuration.after_initialize do
I18n.with_locale(Setting.default_language) do
name I18n.t :'traceability.plugin_name'
description I18n.t :'traceability.plugin_description'
end
end
author 'Emergya'
version '2.1'
settings :default => {'tracker0' => nil, 'tracker1' => nil, 'tracker2' => nil},
:partial => 'settings/traceability'
# This plugin adds a project module
# It can be enabled/disabled at project level (Project settings -> Modules)
project_module :traceability do
# This permission has to be explicitly given
# It will be listed on the permissions screen
permission :view_mt, {:mt => [:index]}
end
# A new item is added to the project menu
menu :project_menu, :traceability,
{:controller => 'mt', :action => 'index'},
:caption => :'traceability.menu_item_name',
:param => :project_id
end