Commit 12c0f5f6 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Do not show Roadmap menu item if the project doesn't define any versions.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1107 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 45b69c4a
......@@ -93,7 +93,8 @@ end
Redmine::MenuManager.map :project_menu do |menu|
menu.push :overview, { :controller => 'projects', :action => 'show' }, :caption => :label_overview
menu.push :activity, { :controller => 'projects', :action => 'activity' }, :caption => :label_activity
menu.push :roadmap, { :controller => 'projects', :action => 'roadmap' }, :caption => :label_roadmap
menu.push :roadmap, { :controller => 'projects', :action => 'roadmap' },
:if => Proc.new { |p| p.versions.any? }, :caption => :label_roadmap
menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
menu.push :new_issue, { :controller => 'issues', :action => 'new' }, :param => :project_id, :caption => :label_issue_new,
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment