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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#64347] use existing helper for cf label
Tobias Dillmann8cb4f16034b4
diff --git a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erbindex 608e951411d..df223298392 100644--- a/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb+++ b/app/components/projects/settings/project_custom_field_sections/custom_field_row_component.html.erb@@ -13,7 +13,7 @@endtitle_container.with_column(pt: 1, mr: 2, data: { test_selector: "custom-field-type" }) dorender(Primer::Beta::Text.new(font_size: :small, color: :subtle)) do- t("label_#{@project_custom_field.field_format}")+ helpers.label_for_custom_field_format(@project_custom_field.field_format)endendif @project_custom_field.required?diff --git a/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erbindex 028629bf860..6a9fb982a3b 100644--- a/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb+++ b/app/components/settings/project_custom_field_sections/custom_field_row_component.html.erb@@ -19,7 +19,7 @@endcontent_container.with_column(mr: 2) dorender(Primer::Beta::Text.new(font_size: :small, color: :subtle)) do- t("label_#{@project_custom_field.field_format}")+ helpers.label_for_custom_field_format(@project_custom_field.field_format)endendcontent_container.with_column(mr: 2) dodiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 6e358c15a57..a3708ab155e 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2708,7 +2708,6 @@ en:label_forum_new: "New forum"label_forum_plural: "Forums"label_forum_sticky: "Sticky"- label_bool: "Boolean"label_boolean: "Boolean"label_board_plural: "Boards"label_branch: "Branch"@@ -2897,7 +2896,6 @@ en:label_information: "Information"label_information_plural: "Information"label_installation_guides: "Installation guides"- label_int: "Integer"label_integer: "Integer"label_interface: "Interface"label_internal: "Internal"