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

Update top menu button

Mir Bhatiaebdb6d431d48
diff --git a/lib/redmine/menu_manager/top_menu_helper.rb b/lib/redmine/menu_manager/top_menu_helper.rb
index 33e719b93fa..54e294132ee 100644
--- a/lib/redmine/menu_manager/top_menu_helper.rb
+++ b/lib/redmine/menu_manager/top_menu_helper.rb
@@ -59,7 +59,9 @@ module Redmine::MenuManager::TopMenuHelper
end
def render_top_menu_teaser
- render EnterpriseEdition::UpsellButtonsComponent.new(:teaser)
+ if User.current.admin? && EnterpriseToken.trial_only?
+ render(EnterpriseEdition::BuyNowButtonComponent.new)
+ end
end
def render_global_search_input