forked from IceskYsl/worklogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
23 lines (19 loc) · 1.18 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
Redmine::Plugin.register :worklogs do
name 'Worklogs'
author 'Iceskysl'
description 'This is a worklogs plugin for Redmine'
version '0.2.3'
url 'https://github.com/IceskYsl/worklogs'
author_url 'http://my.eoe.cn/iceskysl'
# project_module :worklogs do
permission :all_worklogs, :worklogs => :index
permission :my_worklogs, :worklogs => :my
permission :new_worklogs, :worklogs => :new
# end
menu :top_menu, :worklogs, { :controller => 'worklogs', :action => 'index' }, :caption => :label_worklog
# menu :application_menu, :worklogs, { :controller => 'worklogs', :action => 'index' }, :caption => :label_worklog
# menu :application_menu, :worklogs_my, { :controller => 'worklogs', :action => 'my'}, :caption => :label_worklog_my ,:if => Proc.new { params[:controller] == "worklogs" }
# menu :application_menu, :worklogs_new, { :controller => 'worklogs', :action => 'new' }, :caption => :label_worklog_new, :last => true
# menu :project_menu, :worklogs, { :controller => 'worklogs', :action => 'new' }, :caption => :label_worklog, :before => :activity, :param => :project_id
settings :default => {'empty' => true}, :partial => 'settings/worklogs_settings'
end