hide activity menu item when activity is disabled

pull/277/head
Philipp Tessenow 11 years ago
parent 57c7456870
commit c09ca172a0
  1. 3
      lib/redmine.rb

@ -278,7 +278,8 @@ end
Redmine::MenuManager.map :project_menu do |menu|
menu.push :overview, { :controller => '/projects', :action => 'show' }
menu.push :activity, { :controller => '/activities', :action => 'index' }, :param => :project_id
menu.push :activity, { :controller => '/activities', :action => 'index' }, :param => :project_id,
:if => Proc.new { |p| p.module_enabled?("activity") }
menu.push :roadmap, { :controller => '/versions', :action => 'index' }, :param => :project_id,
:if => Proc.new { |p| p.shared_versions.any? }

Loading…
Cancel
Save