forked from wearefine/Redmine-Workload-Dnoise
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.rb
27 lines (22 loc) · 869 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
require 'redmine'
require_dependency 'dateTools'
require_dependency 'list_user'
require_dependency 'calculos_tareas'
Redmine::Plugin.register :redmine_workload do
name 'Redmine Workload plugin'
author 'Yann Bogdanovic'
description 'This is a plugin for Redmine Workload originaly developped by Dnoise Rafael Calleja'
version '0.1.0'
url 'https://github.com/ianbogda/redmine_workload'
author_url 'http://www.d-noise.net/'
project_module :workload do
permission :WorkLoad, {:work_load => [:show ] }
end
menu :top_menu, :WorkLoad, { :controller => 'work_load', :action => 'show' }, :caption => :workload_title,
:if => Proc.new { User.current.admin? }
end
class RedmineToolbarHookListener < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context)
stylesheet_link_tag('style', :plugin => :redmine_workload )
end
end