Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 862 Bytes
require 'redmine'
require_dependency 'time_tracker_hooks'
Redmine::Plugin.register :redmine_time_tracker do
name 'ChiliProject Time Tracker plugin'
author 'Jérémie Delaitre, magic labs*'
description 'This is a plugin to track time in ChiliProject'
version '0.4'
requires_redmine :version_or_higher => '1.1.0'
settings :default => { 'refresh_rate' => '60', 'status_transitions' => {} }, :partial => 'settings/time_tracker'
permission :view_others_time_trackers, :time_trackers => :index
permission :delete_others_time_trackers, :time_trackers => :delete
menu :account_menu, :time_tracker_menu, '',
{
:caption => '',
:html => { :id => 'time-tracker-menu' },
:first => true,
:param => :project_id,
:if => Proc.new { User.current.logged? }
}
end