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

Rename "Professional Support" links to "Enterprise Support"

Aaron Contrerasb9f7bf79b64d
diff --git a/app/views/homescreen/blocks/_community.html.erb b/app/views/homescreen/blocks/_community.html.erb
index b453f15f991..233d060199b 100644
--- a/app/views/homescreen/blocks/_community.html.erb
+++ b/app/views/homescreen/blocks/_community.html.erb
@@ -10,7 +10,7 @@
<li>
<%= static_link_to :forums %></li>
<li>
- <%= static_link_to :professional_support %>
+ <%= static_link_to :enterprise_support_as_community %>
</li>
<li>
<%= link_to(t('label_openproject_website'), "#{OpenProject::Static::Links.links[:website][:href]}/?utm_source=unknown&utm_medium=op-instance&utm_campaign=website-home-screen",
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f8106cbeac3..ef3a7aa4286 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1732,6 +1732,7 @@ en:
label_enterprise: "Enterprise"
label_enterprise_active_users: "%{current}/%{limit} booked active users"
label_enterprise_edition: "Enterprise edition"
+ label_enterprise_support: "Enterprise support"
label_environment: "Environment"
label_estimates_and_time: "Estimates and time"
label_equals: "is"
@@ -1923,7 +1924,6 @@ en:
label_principal_search: "Add existing users or groups"
label_privacy_policy: "Data privacy and security policy"
label_product_version: "Product version"
- label_professional_support: "Professional support"
label_profile: "Profile"
label_project_activity: "Project activity"
label_project_attribute_plural: "Project attributes"
diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rb
index cb9e90d2102..99d22b9f315 100644
--- a/lib/open_project/static/links.rb
+++ b/lib/open_project/static/links.rb
@@ -145,9 +145,13 @@ module OpenProject
href: 'https://community.openproject.com/projects/openproject/forums',
label: 'homescreen.links.forums'
},
- professional_support: {
+ enterprise_support_as_community: {
href: 'https://www.openproject.org/pricing/#support',
- label: :label_professional_support
+ label: :label_enterprise_support
+ },
+ enterprise_support: {
+ href: 'https://www.openproject.org/docs/enterprise-guide/support/',
+ label: :label_enterprise_support
},
website: {
href: 'https://www.openproject.org',
diff --git a/lib/redmine/menu_manager/top_menu/help_menu.rb b/lib/redmine/menu_manager/top_menu/help_menu.rb
index 6b172175ad8..de15fa8d2ef 100644
--- a/lib/redmine/menu_manager/top_menu/help_menu.rb
+++ b/lib/redmine/menu_manager/top_menu/help_menu.rb
@@ -32,7 +32,6 @@ module Redmine::MenuManager::TopMenu::HelpMenu
OpenProject::Static::Links.links,
I18n.locale,
OpenProject::Static::Links.help_link]
-
OpenProject::Cache.fetch(cache_key) do
if OpenProject::Static::Links.help_link_overridden?
content_tag('li',
@@ -102,7 +101,12 @@ module Redmine::MenuManager::TopMenu::HelpMenu
end
result << static_link_item(:shortcuts)
result << static_link_item(:forums)
- result << static_link_item(:professional_support)
+ enterprise_support_link_key = if EnterpriseToken.current.present?
+ :enterprise_support
+ else
+ :enterprise_support_as_community
+ end
+ result << static_link_item(enterprise_support_link_key)
result << content_tag(:hr, '', class: 'op-menu--separator')
end