-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.rb
31 lines (27 loc) · 1.27 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 'espeo_budget/patches/mailer_patch'
require 'espeo_budget/patches/project_patch'
require 'espeo_budget/patches/role_patch'
require 'espeo_budget/patches/time_entry_patch'
require 'espeo_budget/hooks'
Redmine::Plugin.register :espeo_budget do
name 'Espeo Budget plugin'
author '[email protected]'
description 'Plan the budget of your project - plan its\' roles, manhours, costs and incomes, and see it all in a nice summary view!'
version '1.0.0'
url 'http://espeo.pl'
author_url 'http://jtom.me'
project_module :budget do
permission :view_budget, :budget => :show,
:worktime => :show
permission :manage_budget, :budget => [:raport, :edit, :update],
:budget_entries_categories => [:index, :new, :create, :edit, :update, :destroy],
:budget_entries => [:new, :create, :edit, :update, :destroy],
:worktime => [:update, :create_holiday, :destroy_holiday]
end
menu :project_menu, :budget, { :controller => 'budget', :action => 'show' }, :caption => :label_budget, param: :project_id
CustomFieldsHelper::CUSTOM_FIELDS_TABS << {
:name => 'BudgetEntryCustomField',
:partial => 'custom_fields/index',
:label => :budget_entries
}
end