|
|
@ -314,7 +314,7 @@ Redmine::MenuManager.map :project_menu do |menu|
|
|
|
|
# :if => Proc.new { |p| p.boards.any? }, :caption => :label_board_plural
|
|
|
|
# :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 },
|
|
|
|
menu.push :repository, { :controller => 'repositories', :action => 'show', :repository_id => nil, :path => nil, :rev => nil },
|
|
|
|
:if => Proc.new { |p| p.repository && !p.repository.new_record? }
|
|
|
|
: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
|
|
|
|
menu.push :settings, { :controller => 'projects', :action => 'settings' }, :last => true
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|