Project

General

Profile

Patch #39835 ยป optimize-repository-menu.patch

Go MAEDA, 2023-12-12 15:19

View differences:

lib/redmine/preparation.rb
menu.push :repository,
{:controller => 'repositories', :action => 'show',
:repository_id => nil, :path => nil, :rev => nil},
:if => Proc.new {|p| p.repositories.any? {|r| !r.new_record?}}
:if => Proc.new {|p| Repository.where(project_id: p.id).any?}
menu.push :settings, {:controller => 'projects', :action => 'settings'},
:last => true
end
    (1-1/1)