Files
redmine/plugins/easy_gantt/init.rb
Roman Vaníček 878b537bea
Some checks failed
continuous-integration/drone Build is failing
Fix top and project menu items and also styling.
2023-08-10 20:53:39 +02:00

34 lines
1.0 KiB
Ruby

Redmine::Plugin.register :easy_gantt do
name 'Easy Gantt plugin'
author 'Easy Software Ltd'
url 'https://www.easysoftware.com'
author_url 'https://www.easysoftware.com'
description 'Cool gantt for redmine'
version '2.0'
menu :top_menu,
:easy_gantt, { controller: 'easy_gantt', action: 'index', set_filter: 0 },
caption: :label_easy_gantt,
after: :documents,
html: { class: 'icon icon-stats' },
if: proc { User.current.allowed_to_globally?(:view_global_easy_gantt) }
menu :project_menu,
:easy_gantt, { controller: 'easy_gantt', action: 'index' },
param: :project_id,
caption: :button_project_menu_easy_gantt,
if: proc { |p| User.current.allowed_to?(:view_easy_gantt, p) }
requires_redmine version_or_higher: '5.0'
settings partial: 'settings/easy_gantt', default: {
'critical_path' => 'last',
'default_zoom' => 'day',
'show_project_progress' => '1',
'show_lowest_progress_tasks' => '0',
'show_task_soonest_start' => '0',
'relation_delay_in_workdays' => '0'
}
end
require_relative 'after_init'