forked from JostBaron/redmine_workload
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.rb
More file actions
30 lines (24 loc) · 1.08 KB
/
init.rb
File metadata and controls
30 lines (24 loc) · 1.08 KB
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
# -*- encoding : utf-8 -*-
require 'redmine'
require_dependency 'dateTools'
require_dependency 'list_user'
Redmine::Plugin.register :redmine_workload do
name 'Redmine workload plugin'
author 'Jost Baron'
description 'This is a plugin for Redmine, originally developed by Rafael Calleja. It ' +
'displays the estimated number of hours users have to work to finish ' +
'all their assigned issus on time.'
version '1.0.1'
url 'https://github.com/JostBaron/redmine_workload'
author_url 'http://netzkönig.de/'
menu :top_menu, :WorkLoad, { :controller => 'work_load', :action => 'show' }, :caption => :workload_title,
:if => Proc.new { User.current.logged? }
settings :default => {'empty' => true}, :partial => 'settings/workload_settings'
permission :view_project_workload, :work_load => :show
end
class RedmineToolbarHookListener < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context)
javascript_include_tag('slides', :plugin => :redmine_workload ) +
stylesheet_link_tag('style', :plugin => :redmine_workload )
end
end