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

Merge branch 'dev' into merge-release/16.0-20250507034536

Klaus Zanders18f68c7f7efd
diff --cc app/helpers/types_helper.rb
index f5d31d4c61a,e2618e00909..2009c4e35aa
--- a/app/helpers/types_helper.rb
+++ b/app/helpers/types_helper.rb
@@@ -29,9 -29,9 +29,9 @@@
#++
module ::TypesHelper
- # rubocop:disable Rails/HelperInstanceVariable
+ # rubocop:disable Rails/HelperInstanceVariable, Metrics/AbcSize
def types_tabs
- tabs = [
+ [
{
name: "settings",
path: edit_tab_type_path(id: @type.id, tab: :settings),
@@@ -42,15 -42,8 +42,15 @@@
name: "form_configuration",
partial: "types/form/form_configuration",
path: edit_tab_type_path(id: @type.id, tab: :form_configuration),
- label: "types.edit.form_configuration.tab"
+ label: I18n.t("types.edit.form_configuration.tab")
},
+ {
+ name: "subject_configuration",
+ path: edit_tab_type_path(id: @type.id, tab: :subject_configuration),
+ label: "types.edit.subject_configuration.tab",
+ view_component: WorkPackages::Types::SubjectConfigurationComponent,
+ enterprise_feature: :work_package_subject_generation
+ },
{
name: "projects",
partial: "types/form/projects",
@@@ -64,9 -57,23 +64,9 @@@
view_component: WorkPackages::Types::ExportConfigurationComponent
}
]
-
- if OpenProject::FeatureDecisions.generate_work_package_subjects_active?
- subject_configuration_tab = {
- name: "subject_configuration",
- path: edit_tab_type_path(id: @type.id, tab: :subject_configuration),
- label: I18n.t("types.edit.subject_configuration.tab"),
- view_component: WorkPackages::Types::SubjectConfigurationComponent,
- enterprise_feature: :work_package_subject_generation
- }
-
- tabs.insert(2, subject_configuration_tab)
- end
-
- tabs
end
- # rubocop:enable Rails/HelperInstanceVariable
+ # rubocop:enable Rails/HelperInstanceVariable, Metrics/AbcSize
def icon_for_type(type)
return unless type