-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
init.rb
23 lines (19 loc) · 824 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
Redmine::Plugin.register :view_customize do
requires_redmine :version_or_higher => '3.1.0'
name 'View Customize plugin'
author 'onozaty'
description 'View Customize plugin for Redmine'
version '3.5.2'
url 'https://github.com/onozaty/redmine-view-customize'
author_url 'https://github.com/onozaty'
menu :admin_menu, :view_customizes,
{ :controller => 'view_customizes', :action => 'index' },
:caption => :label_view_customize,
:html => { :class => 'icon icon-view_customize'},
:if => Proc.new { User.current.admin? }
settings :default => { 'create_api_access_key' => '' }, :partial => 'settings/view_customize_settings'
should_be_disabled false if Redmine::Plugin.installed?(:easy_extensions)
end
unless Redmine::Plugin.installed?(:easy_extensions)
require_relative 'after_init'
end