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 plan title

Oliver Günther412be547c8e1
diff --git a/app/components/enterprise_edition/banner_component.rb b/app/components/enterprise_edition/banner_component.rb
index 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_key
def 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:)
end
def 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"))
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 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."