|
|
|
@ -301,7 +301,7 @@ end
|
|
|
|
|
Redmine::MenuManager.map :project_menu do |menu|
|
|
|
|
|
menu.push :overview, { :controller => 'projects', :action => 'show' }
|
|
|
|
|
# menu.push :activity, { :controller => 'activities', :action => 'index' }
|
|
|
|
|
menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id
|
|
|
|
|
#menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id
|
|
|
|
|
# :if => Proc.new { |p| p.shared_versions.any? }
|
|
|
|
|
menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
|
|
|
|
|
# menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
|
|
|
|
@ -314,7 +314,7 @@ Redmine::MenuManager.map :project_menu do |menu|
|
|
|
|
|
# :if => Proc.new { |p| p.wiki && !p.wiki.new_record? }
|
|
|
|
|
menu.push :boards, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id,
|
|
|
|
|
:if => Proc.new { |p| p.boards.any? }, :caption => :label_board_plural
|
|
|
|
|
menu.push :files, { :controller => 'files', :action => 'index' }, :param => :project_id, :caption => :label_file_new
|
|
|
|
|
#menu.push :files, { :controller => 'files', :action => 'index' }, :param => :project_id, :caption => :label_file_new
|
|
|
|
|
menu.push :repository, { :controller => 'repositories', :action => 'show', :repository_id => nil, :path => nil, :rev => nil },
|
|
|
|
|
:if => Proc.new { |p| p.repository && !p.repository.new_record? && !( !User.current.member_of?(p) && p.hidden_repo ) }
|
|
|
|
|
menu.push :settings, { :controller => 'projects', :action => 'settings' }, :last => true
|
|
|
|
|