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
Add plan title
Oliver Günther412be547c8e1
diff --git a/app/components/enterprise_edition/banner_component.rb b/app/components/enterprise_edition/banner_component.rbindex 757198892bd..abfc69f6e3d 100644--- a/app/components/enterprise_edition/banner_component.rb+++ b/app/components/enterprise_edition/banner_component.rb@@ -67,7 +67,11 @@ module EnterpriseEdition:feature_keydef title- @title || I18n.t("ee.upsale.#{feature_key}.title", default: I18n.t("ee.upsale.title"))+ @title || I18n.t("ee.upsale.#{feature_key}.title", default: default_title)+ end++ def default_title+ I18n.t("ee.upsale.plan_title", plan:)enddef description@@ -86,6 +90,10 @@ module EnterpriseEdition)end+ def plan+ @plan ||= OpenProject::Token.lowest_plan_for(feature_key)&.capitalize+ end+def link_title@link_title || I18n.t("ee.upsale.#{feature_key}.link_title", default: I18n.t("ee.upsale.link_title"))enddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex fa97b6b0532..b66bdd3cd80 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2050,6 +2050,7 @@ en:ee:upsale:title: "Enterprise add-on"+ plan_title: "Enterprise %{plan} add-on"link_title: "More information"automatic_subject_generation:description: "Create automatically generated subjects using referenced attributes and text."