forked from simonstearn1/redmine_loader
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.rb
28 lines (17 loc) · 948 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
require 'redmine'
Redmine::Plugin.register :redmine_loader do
name 'Basic project file loader for Redmine'
author 'Simon Stearn largely hacking Andrew Hodgkinsons trackrecord code (sorry Andrew)'
description 'Basic project file loader'
version '0.0.11'
requires_redmine :version_or_higher => '0.9.2'
# Commented out because it refused to work in development mode
default_tracker_name = 'Funcionalidade' #Tracker.find_by_id( 1 ).name
default_tracker_alias = 'Tracker'
settings :default => {'tracker' => default_tracker_name, 'tracker_alias' => default_tracker_alias }, :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 => 'Import/Export Issues', :after => :new_issue, :param => :project_id
end