-
Notifications
You must be signed in to change notification settings - Fork 10
/
init.rb
14 lines (11 loc) · 845 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require File.dirname(__FILE__) + '/lib/redmine_shortcuts/hooks/hooks.rb'
Redmine::Plugin.register :redmine_shortcuts do
name 'Redmine Shortcuts'
author 'Davide Giacometti'
description 'Provides useful keyboard shortcuts'
version '0.6.0'
url 'https://github.com/davidegiacometti/redmine_shortcuts'
author_url 'https://github.com/davidegiacometti'
settings :partial => 'settings/redmine_shortcuts', :default => {'enable_issue_shortcuts' => '1', 'enable_editor_shortcuts' => '1', 'enable_help_link' => '1', 'help_link_label' => 'Redmine shortcuts', 'enable_help_modal' => '1' }
menu :top_menu, :redmine_shortcuts, {:controller => 'help', :action => 'index'}, :caption => Proc.new { Setting.plugin_redmine_shortcuts['help_link_label'] }, :last => true, :if => Proc.new { Setting.plugin_redmine_shortcuts['enable_help_link'] }
end