Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add menu entry

Ivan Kuchindf017fe8f9e1
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index da3a44c8978..03841396f13 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -341,6 +341,12 @@ Redmine::MenuManager.map :admin_menu do |menu|
caption: :label_project_plural,
icon: "project"
+ menu.push :project_life_cycle_step_definitions_settings,
+ { controller: "/admin/settings/project_life_cycle_step_definitions", action: :index },
+ if: Proc.new { User.current.admin? && OpenProject::FeatureDecisions.stages_and_gates_active? },
+ caption: :label_project_lifecycle,
+ parent: :admin_projects_settings
+
menu.push :project_custom_fields_settings,
{ controller: "/admin/settings/project_custom_fields", action: :index },
if: Proc.new { User.current.admin? },
diff --git a/config/locales/en.yml b/config/locales/en.yml
index a30f41b03a8..e0a83b0ce46 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2710,6 +2710,7 @@ en:
label_project_new: "New project"
label_project_plural: "Projects"
label_project_list_plural: "Project lists"
+ label_project_lifecycle: "Project lifecycle"
label_project_attributes_plural: "Project attributes"
label_project_custom_field_plural: "Project attributes"
label_project_settings: "Project settings"
diff --git a/config/routes.rb b/config/routes.rb
index 2a9e1a53b7b..f3006dd6de2 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -514,6 +514,7 @@ Rails.application.routes.draw do
resource :progress_tracking, controller: "/admin/settings/progress_tracking", only: %i[show update]
resource :projects, controller: "/admin/settings/projects_settings", only: %i[show update]
resource :new_project, controller: "/admin/settings/new_project_settings", only: %i[show update]
+ resources :project_lifecycle, controller: "/admin/settings/project_life_cycle_step_definitions", only: %i[index]
resources :project_custom_fields, controller: "/admin/settings/project_custom_fields" do
member do
delete "options/:option_id", action: "delete_option", as: :delete_option_of