forked from FabioNascimento/redmine_loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
32 lines (26 loc) · 1.1 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
31
require 'redmine'
Redmine::Plugin.register :redmine_loader do
name 'Basic project file loader for Redmine'
author 'Simon Stearn, Andrew Hodgkinsons, Tobias Droste'
description 'Basic MSProject XML file loader'
version '2.0.0'
requires_redmine :version_or_higher => '2.0.0'
default_tracker_id = '1'
default_tracker_alias = 'Tracker'
default_assigned_to_alias = 'Resource'
settings :default => {'tracker' => default_tracker_id,
'tracker_alias' => default_tracker_alias,
'assigned_to_alias' => default_assigned_to_alias,
'custom_field_id_uid' => '0',
'custom_field_id_resource' => '0',
'custom_field_id_calendar_uid' => '0',
'export_xml_header' => '',
'export_xml_extended_attributes' => '',
'export_xml_calendars' => '',
'export_xml_resources' => '' }, :partial => 'settings/loader_settings'
project_module :project_xml_importer do
permission :import_issues_from_xml, :loader => [:new, :create]
end
menu :project_menu, :loader, { :controller => 'loader', :action => 'new' },
:caption => :menu_caption, :after => :new_issue, :param => :project_id
end