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

index header

Ivan Kuchinfea5dad0633b
diff --git a/app/components/settings/project_life_cycle_step_definitions/index_header_component.html.erb b/app/components/settings/project_life_cycle_step_definitions/index_header_component.html.erb
new file mode 100644
index 00000000000..7c1d55449bd
--- /dev/null
+++ b/app/components/settings/project_life_cycle_step_definitions/index_header_component.html.erb
@@ -0,0 +1,69 @@
+<%#-- copyright
+OpenProject is an open source project management software.
+Copyright (C) the OpenProject GmbH
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License version 3.
+
+OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+Copyright (C) 2006-2013 Jean-Philippe Lang
+Copyright (C) 2010-2013 the ChiliProject Team
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+See COPYRIGHT and LICENSE files for more details.
+
+++#%>
+
+<%=
+ render Primer::OpenProject::PageHeader.new do |header|
+ header.with_title { t("settings.project_life_cycle_step_definitions.heading") }
+ header.with_description { t("settings.project_life_cycle_step_definitions.heading_description") }
+ header.with_breadcrumbs(breadcrumbs_items)
+ end
+%>
+
+<%=
+ render(Primer::OpenProject::SubHeader.new) do |subheader|
+ subheader.with_action_component do
+ render(Primer::Alpha::ActionMenu.new(
+ anchor_align: :end)
+ ) do |menu|
+ menu.with_show_button(
+ scheme: :primary,
+ aria: { label: I18n.t("settings.project_life_cycle_step_definitions.label_add_description") },
+ ) do |button|
+ button.with_leading_visual_icon(icon: :plus)
+ button.with_trailing_action_icon(icon: :"triangle-down")
+ I18n.t("settings.project_life_cycle_step_definitions.label_add")
+ end
+
+ menu.with_item(
+ label: I18n.t("settings.project_life_cycle_step_definitions.label_add_stage"),
+ href: new_stage_admin_settings_project_life_cycle_step_definitions_path
+ ) do |item|
+ item.with_leading_visual_icon(icon: "git-commit")
+ end
+
+ menu.with_item(
+ label: I18n.t("settings.project_life_cycle_step_definitions.label_add_gate"),
+ href: new_gate_admin_settings_project_life_cycle_step_definitions_path
+ ) do |item|
+ item.with_leading_visual_icon(icon: "diamond")
+ end
+ end
+ end
+ end
+%>
diff --git a/app/components/settings/project_life_cycle_step_definitions/index_header_component.rb b/app/components/settings/project_life_cycle_step_definitions/index_header_component.rb
new file mode 100644
index 00000000000..6622a0f61b8
--- /dev/null
+++ b/app/components/settings/project_life_cycle_step_definitions/index_header_component.rb
@@ -0,0 +1,42 @@
+#-- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2013 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See COPYRIGHT and LICENSE files for more details.
+#++
+
+module Settings
+ module ProjectLifeCycleStepDefinitions
+ class IndexHeaderComponent < ApplicationComponent
+
+ def breadcrumbs_items
+ [
+ { href: admin_index_path, text: t("label_administration") },
+ { href: admin_settings_project_custom_fields_path, text: t("label_project_plural") },
+ t("settings.project_life_cycle_step_definitions.heading")
+ ]
+ end
+ end
+ end
+end
diff --git a/app/views/admin/settings/project_life_cycle_step_definitions/index.html.erb b/app/views/admin/settings/project_life_cycle_step_definitions/index.html.erb
new file mode 100644
index 00000000000..24640627212
--- /dev/null
+++ b/app/views/admin/settings/project_life_cycle_step_definitions/index.html.erb
@@ -0,0 +1,32 @@
+<%#-- copyright
+OpenProject is an open source project management software.
+Copyright (C) the OpenProject GmbH
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License version 3.
+
+OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+Copyright (C) 2006-2013 Jean-Philippe Lang
+Copyright (C) 2010-2013 the ChiliProject Team
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+See COPYRIGHT and LICENSE files for more details.
+
+++#%>
+
+<% html_title t(:label_administration), t("settings.project_life_cycle_step_definitions.heading") %>
+
+<%= render Settings::ProjectLifeCycleStepDefinitions::IndexHeaderComponent.new %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index e0a83b0ce46..835d2b69386 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3766,6 +3766,13 @@ en:
new:
heading: "New attribute"
description: "Changes to this project attribute will be reflected in all projects where it is enabled. Required attributes cannot be disabled on a per-project basis."
+ project_life_cycle_step_definitions:
+ heading: "Project lifecycle"
+ heading_description: "Project lifecycle define the project stages and gates that can be used for your project planning and will appear in the overview page of each project. These attributes can be enabled or disabled but not re-ordered at a project level."
+ label_add: "Add"
+ label_add_description: "Add lifecycle definition"
+ label_add_stage: "Stage"
+ label_add_gate: "Gate"
projects:
missing_dependencies: "Project module %{module} was checked which depends on %{dependencies}. You need to check these dependencies as well."
section_new_projects: "Settings for new projects"